]> git.somenet.org - somenet/munin.git/blob - cyrus
muninplugins moved out of private root scripts
[somenet/munin.git] / cyrus
1 #!/bin/sh
2
3 if [ "$1" = "autoconf" ]; then
4         echo "yes"
5         exit 0
6 fi
7
8
9 if [ "$1" = "config" ]; then
10     echo "graph_title User's mailstorage size"
11     echo "graph_info This graph shows every user's mailstorage size. Also spam-dir."
12     echo "graph_category mail"
13     echo "graph_order `cat /tmp/munin_cyrus.txt | awk '{printf $2" " }'`"
14     cat /tmp/munin_cyrus.txt 2> /dev/null | awk '{print $2".draw LINE2" }'
15     cat /tmp/munin_cyrus.txt 2> /dev/null | awk '{print $2".label "$2 }'
16 #    echo "graph_printf %.0lf"
17 #    echo "graph_scale no"
18     echo "graph_args -l 0"
19     exit 0
20 fi
21
22 cat /tmp/munin_cyrus.txt | awk '{print $2".value "$1 }'
23 exit 0