]> git.somenet.org - somenet/munin.git/blob - ircsvc
more munin fields
[somenet/munin.git] / ircsvc
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 registrations"
10     echo "graph_info This graph shows the IRC service's registration counts. Including the count of registered channels and nicknames."
11     echo "graph_category irc"
12     echo "graph_order channels nickaliases nickcores"
13     echo "graph_printf %.0lf"
14     echo "graph_scale no"
15     echo "graph_args -l 0"
16     echo "channels.label Registered channels"
17     echo "channels.draw LINE2"
18     echo "nickaliases.label Registered nicks + aliases"
19     echo "nickaliases.draw LINE2"
20     echo "nickcores.label Registered nicks"
21     echo "nickcores.draw LINE2"
22     exit 0
23 fi
24
25 grep -i "channels.value" /tmp/irc/servicestats.txt
26 grep -i "nickaliases.value" /tmp/irc/servicestats.txt
27 grep -i "nickcores.value" /tmp/irc/servicestats.txt
28
29 exit 0