2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Plguin xen_memory: change 'draw' style from lines to AREASTACK

This commit is contained in:
Lars Kruse 2018-08-01 23:53:04 +02:00
parent 4d2d1fb94b
commit c8df9ab4e9

View File

@ -36,20 +36,17 @@ if [ "$1" = "config" ]; then
# free_memory 1476
name=$(echo "$name" | sed -e"s/-/_/")
if [ "$name" = "total_memory" ]; then
if [ "$name" = "total_memory" ] || [ "$name" = "free_memory" ]; then
echo "$name.label $name"
echo "$name.type GAUGE"
echo "$name.draw AREASTACK"
echo "$name.min 0"
echo "$name.info total memory"
fi
if [ "$name" = "free_memory" ]; then
echo "$name.label $name"
echo "$name.type GAUGE"
echo "$name.draw AREA"
# echo "$name.draw STACK"
echo "$name.min 0"
echo "$name.info free memory"
fi
if [ "$name" = "total_memory" ]; then
echo "$name.info total memory"
elif [ "$name" = "free_memory" ]; then
echo "$name.info free memory"
fi
fi
done
exit 0
fi