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

lxc_ram: unify whitespace

This commit is contained in:
Lars Kruse 2018-06-10 14:47:00 +02:00
parent a49b362e35
commit 937ed37dae

View File

@ -70,7 +70,6 @@ if [ "$1" = "autoconf" ]; then
fi
if [ "$1" = "config" ]; then
echo 'graph_title Memory '
echo 'graph_args -l 0 --base 1024'
echo 'graph_vlabel byte'
@ -79,7 +78,6 @@ if [ "$1" = "config" ]; then
if [ "$areastack" = "true" ]; then
for guest_name in $guest_names; do
guest="$(clean_fieldname "$guest_name")"
echo "mem_usage_$guest.label $guest_name: Mem usage"
echo "mem_usage_$guest.type GAUGE"
echo "mem_usage_$guest.draw AREASTACK"
@ -87,20 +85,16 @@ if [ "$1" = "config" ]; then
for guest_name in $guest_names; do
guest="$(clean_fieldname "$guest_name")"
echo "mem_cache_$guest.label $guest_name: Cache"
echo "mem_cache_$guest.type GAUGE"
echo "mem_active_$guest.label $guest_name: Active"
echo "mem_active_$guest.type GAUGE"
echo "mem_inactive_$guest.label $guest_name: Inactive"
echo "mem_inactive_$guest.type GAUGE"
done
else
for guest_name in $guest_names;
do
for guest_name in $guest_names; do
guest="$(clean_fieldname "$guest_name")"
echo "mem_usage_$guest.label $guest_name: Mem usage"
echo "mem_usage_$guest.type GAUGE"
echo "mem_cache_$guest.label $guest_name: Cache"
@ -109,10 +103,8 @@ if [ "$1" = "config" ]; then
echo "mem_active_$guest.type GAUGE"
echo "mem_inactive_$guest.label $guest_name: Inactive"
echo "mem_inactive_$guest.type GAUGE"
done
fi
exit 0
fi