Package: munin-node
Version: 1.4.3-2
Severity: wishlist
Tags: patch

Hi!

I just noticed the new total graph in the df_abs diagrams and find it mostly
usefull but in some cases also irritating. The attached patch makes df_abs
mind a new env var $nototal and disables the total graph when it's  set to
true.
Cheers
Daniel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-dhr (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF8, LC_CTYPE=en_US.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages munin-node depends on:
ii  adduser                   3.112          add and remove users and groups
ii  gawk                      1:3.1.6.dfsg-4 GNU awk, a pattern scanning and pr
ii  libnet-server-perl        0.97-1         An extensible, general perl server
ii  lsb-base                  3.2-23         Linux Standard Base 3.2 init scrip
ii  munin-common              1.4.3-2        network-wide graphing framework (c
ii  perl                      5.10.1-9       Larry Wall's Practical Extraction 
ii  procps                    1:3.2.8-2      /proc file system utilities
--- df_abs.org  2010-02-01 01:45:43.651144907 +0100
+++ df_abs      2010-02-01 01:45:13.167645243 +0100
@@ -15,6 +15,7 @@
   env.exclude  - space separated list of file system types to exclude
   env.warning  - Warning percentage
   env.critical - Critical percentage
+  env.nototal  - disable total graph in diagrams [true|false]
 
 =head2 DEFAULT CONFIGURATION
 
@@ -64,7 +65,7 @@
        echo 'graph_args --base 1024 --lower-limit 0'
        echo 'graph_vlabel bytes'
        echo 'graph_category disk'
-       echo 'graph_total Total'
+       [ "$nototal" != "true" ] && echo 'graph_total Total'
        df -P -l $exclude | sed 1d | grep -v "//" | 
        while read dev size used avail cap mnt; do
                name="$(clean_fieldname $dev)"

Reply via email to