~ubuntu-branches/ubuntu/saucy/munin/saucy

« back to all changes in this revision

Viewing changes to plugins/node.d/df.in

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 12:54:28 UTC
  • mfrom: (8.1.30 sid)
  • Revision ID: package-import@ubuntu.com-20120611125428-k8z25s77rp755vxe
Tags: 2.0.0-1ubuntu1
* Resync with Debian unstable.
* d/munin-node.upstart,munin.upstart: Add upstart configurations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
if [ "$1" = "autoconf" ]; then
35
35
    if [ -z "$(print_values)" ] ; then
36
36
        echo no
37
 
        exit 0
38
37
    else
39
38
        echo yes
40
 
        exit 0
41
39
    fi
 
40
    exit 0
42
41
fi
43
42
 
44
43
if [ "$1" = "config" ]; then
45
44
    echo 'graph_title Filesystem usage (in %)'
46
45
    echo 'graph_args --upper-limit 100 -l 0'
47
46
    echo 'graph_vlabel %'
 
47
    echo 'graph_category disk'
48
48
    echo 'graph_scale no'
49
 
    df -P -l  | sed -e 1d -e '/\/\//d' -e 's/%//' | sort | 
 
49
    df -P -l  | sed -e 1d -e '/\/\//d' -e 's/%//' | sort |
50
50
    while read dev size used free pct fs; do
51
51
        name=$(clean_fieldname $dev)
52
52
        echo "$name.label $fs"