diff --git a/plugins/lxc/lxc-multigraph b/plugins/lxc/lxc-multigraph index 5ea96a40..817e32e0 100755 --- a/plugins/lxc/lxc-multigraph +++ b/plugins/lxc/lxc-multigraph @@ -12,10 +12,10 @@ lxc-multigraph - Plugin to monitor LXC containers (v2.0) [lxc-multigraph] user root - # memory usage of containers drawn as - # stacked area charts (changes graph - # order) -- defaults to false - # env.ram_display_stacked true + # The memory usage of containers are by default drawn as stacked area + # charts. Alternatively a non-stacked graph with lines can be configured. + # Default: true + #env.ram_display_stacked true # lxc container path, default below #env.lxcpath /var/lib/lxc @@ -84,7 +84,7 @@ or GPLv3 license or later, at your option . $MUNIN_LIBDIR/plugins/plugin.sh lxcpath=${lxcpath:-/var/lib/lxc} -ram_display_stacked=${ram_display_stacked:-false} +ram_display_stacked=${ram_display_stacked:-true} # --- FUNCTIONS @@ -309,10 +309,10 @@ EOF for n in $active_guests do - if [ "$ram_display_stacked" = "true" ]; then - draw_style="AREASTACK" - else + if [ "$ram_display_stacked" != "true" ]; then draw_style="LINE1" + else + draw_style="AREASTACK" fi cat <