3 NETIDLIST="sno fro otu"
5 if [ "$1" = "autoconf" ]; then
10 if [ "$1" = "config" ]; then
11 echo "graph_title ircnet comparison"
12 echo "graph_info This graph compares IRC Networks"
13 echo "graph_category irc"
14 echo "graph_printf %.0lf"
16 echo "graph_args -l 0"
18 for net in $NETIDLIST; do
19 echo "channels_${net}.label ${net}:channels"
20 echo "channels_${net}.draw LINE2"
21 echo "users_${net}.label ${net}:clients"
22 echo "users_${net}.draw LINE2"
23 echo "servers_${net}.label ${net}:servers"
24 echo "servers_${net}.draw LINE2"
29 for net in $NETIDLIST; do
30 grep -i "There are" /tmp/irc_${net}_lusers.txt 2>/dev/null | sed -E 's~^There are .*? on ([0-9]+) servers.*$~servers_'${net}'.value \1~'
31 grep -i "Current Global Users" /tmp/irc_${net}_lusers.txt 2>/dev/null | sed -E 's~^Current Global Users: ([0-9]+) .*$~users_'${net}'.value \1~'
32 grep -i "channels" /tmp/irc_${net}_lusers.txt 2>/dev/null | sed -E 's~^([0-9]+).*$~channels_'${net}'.value \1~'