mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin lxc: draw stacked RAM graphs by default
Previously "ram_display_stacked" defaulted to "false" (non-stacked graphs). The new default should be suitable for most situations.
This commit is contained in:
parent
ab6f4e3c6e
commit
9af96d2c60
1 changed files with 8 additions and 8 deletions
|
@ -12,10 +12,10 @@ lxc-multigraph - Plugin to monitor LXC containers (v2.0)
|
||||||
[lxc-multigraph]
|
[lxc-multigraph]
|
||||||
user root
|
user root
|
||||||
|
|
||||||
# memory usage of containers drawn as
|
# The memory usage of containers are by default drawn as stacked area
|
||||||
# stacked area charts (changes graph
|
# charts. Alternatively a non-stacked graph with lines can be configured.
|
||||||
# order) -- defaults to false
|
# Default: true
|
||||||
# env.ram_display_stacked true
|
#env.ram_display_stacked true
|
||||||
|
|
||||||
# lxc container path, default below
|
# lxc container path, default below
|
||||||
#env.lxcpath /var/lib/lxc
|
#env.lxcpath /var/lib/lxc
|
||||||
|
@ -84,7 +84,7 @@ or GPLv3 license or later, at your option
|
||||||
. $MUNIN_LIBDIR/plugins/plugin.sh
|
. $MUNIN_LIBDIR/plugins/plugin.sh
|
||||||
|
|
||||||
lxcpath=${lxcpath:-/var/lib/lxc}
|
lxcpath=${lxcpath:-/var/lib/lxc}
|
||||||
ram_display_stacked=${ram_display_stacked:-false}
|
ram_display_stacked=${ram_display_stacked:-true}
|
||||||
|
|
||||||
|
|
||||||
# --- FUNCTIONS
|
# --- FUNCTIONS
|
||||||
|
@ -309,10 +309,10 @@ EOF
|
||||||
|
|
||||||
for n in $active_guests
|
for n in $active_guests
|
||||||
do
|
do
|
||||||
if [ "$ram_display_stacked" = "true" ]; then
|
if [ "$ram_display_stacked" != "true" ]; then
|
||||||
draw_style="AREASTACK"
|
|
||||||
else
|
|
||||||
draw_style="LINE1"
|
draw_style="LINE1"
|
||||||
|
else
|
||||||
|
draw_style="AREASTACK"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue