From 58e5b2f32ca05f5e9410dd5a64998ef72ba0bdeb Mon Sep 17 00:00:00 2001 From: Ken-ichi Mito Date: Sun, 31 Jul 2016 21:42:32 +0900 Subject: [PATCH] rename option to 'env.areastack' --- plugins/lxc/lxc_ram | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/lxc/lxc_ram b/plugins/lxc/lxc_ram index 004f829a..c0437341 100755 --- a/plugins/lxc/lxc_ram +++ b/plugins/lxc/lxc_ram @@ -13,16 +13,16 @@ lxc_ram - Plugin to monitor LXC memory usage. user root [lxc_ram] - env.stack_usage true + env.areastack true =head1 INTERPRETATION This plugin needs root privilege. -If env.stack_usage is set to true, all memory usages of containers will be +If env.areastack is set to true, all memory usages of containers will be drawn as stacked area charts. This option changes graph order, all of 'Mem usage' comes first and then others. -(default: empty) +(default: false) =head1 AUTHOR @@ -70,7 +70,7 @@ if [ "$1" = "config" ]; then echo 'graph_vlabel byte' echo 'graph_category memory' - if [ "$stack_usage" = "true" ]; then + if [ "$areastack" = "true" ]; then for guest_name in $guest_names; do guest="$(clean_fieldname $guest_name)" @@ -84,7 +84,7 @@ if [ "$1" = "config" ]; then do guest="$(clean_fieldname $guest_name)" - if [ "$stack_usage" != "true" ]; then + if [ "$areastack" != "true" ]; then echo 'mem_usage_'$guest'.label '$guest_name': Mem usage' echo 'mem_usage_'$guest'.type GAUGE' fi