]> git.somenet.org - root/munin.git/blob - ircsvcdb
muninplugins moved out of private root scripts
[root/munin.git] / ircsvcdb
1 #!/bin/sh
2
3 if [ "$1" = "autoconf" ]; then
4         echo "yes"
5         exit 0
6 fi
7
8 if [ "$1" = "config" ]; then
9     echo "graph_title service's database"
10     echo "graph_info This graph shows the IRC service's database stats."
11     echo "graph_category irc"
12     echo "graph_order dbsize"
13     echo "graph_scale yes"
14     echo "graph_args --logarithmic -l 0.1"
15     echo "dbsize.label DB size"
16     echo "dbsize.draw LINE2"
17     echo "memos.label Stored memos"
18     echo "memos.draw LINE2"
19     exit 0
20 fi
21
22 grep -i "dbsize.value" /tmp/irc/servicestats.txt
23 grep -i "memos.value" /tmp/irc/servicestats.txt
24
25 exit 0
26