Category:Munin Graphs: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
for file in $(ls *.png); do
for file in $(ls *.png); do
fileSize=`du --bytes $file | cut -f1`
fileSize=`du --bytes $file | cut -f1`
if [[ $fileSize -gt 370000 ]]; then
if [[ $fileSize -gt 800000 ]]; then
for file in $(ls *.png); do name=${file%.*}; echo $name; convert $file "${name}.gif"; rm $file; done
for file in $(ls *.png); do name=${file%.*}; echo $name; convert $file "${name}.gif"; rm $file; done
find . -maxdepth 1 -iname '*.gif' -exec convert {} -resize '1920000@>' {} \;
find . -maxdepth 1 -iname '*.gif' -exec convert {} -resize '1920000@>' {} \;

Revision as of 06:46, 7 September 2019

Add this category to all uploads of screenshots taken of Munin Graphs. These graphs may be useful in debugging the OSE_Server or for provisioning when calculating requirements of expected future hardware needs.

It would be wise to dump snapshots of such graphs to the wiki every year or so for the historical record.

Note that these images compress & view best as gif images max ~800k in size. This can be done in batch on the cli (after creating a backup of the original files!), for example:

for file in $(ls *.png); do
	fileSize=`du --bytes $file | cut -f1`
	if [[ $fileSize -gt 800000 ]]; then
		for file in $(ls *.png); do name=${file%.*}; echo $name; convert $file "${name}.gif"; rm $file; done
		find . -maxdepth 1 -iname '*.gif' -exec convert {} -resize '1920000@>' {} \;
	fi
done

See Also

Media in category "Munin Graphs"

The following 41 files are in this category, out of 41 total.