fi
if [ "$1" = "config" ]; then
- echo "graph_title ircnet comparison"
+ echo "graph_title An IRC-Net comparison"
echo "graph_info This graph compares IRC Networks"
echo "graph_category irc"
echo "graph_printf %.0lf"
echo "graph_category irc"
echo "graph_printf %.0lf"
echo "graph_scale no"
- cat /tmp/irc_sno/channels.txt | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".label "$1"\n"$1".draw LINE2" }' | head -n 15
+ cat /tmp/irc_sno/channels.txt | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".label "$1"\n"$1".draw LINE2" }' | head -n 30
exit 0
fi
exit 0
fi
-cat /tmp/irc_sno/stats.txt
+cat /tmp/irc_sno/lusers.txt | grep 'channels formed' | sed -e 's/\(.*\) channels formed/channels.value \1/'
+cat /tmp/irc_sno/lusers.txt | grep 'Current Global Users' | sed -e 's/Current Global Users: \(.*\) Max.*$/clients.value \1/'
+cat /tmp/irc_sno/lusers.txt | grep 'There are ' | sed -e 's/^.*on \(.*\) servers/servers.value \1/'
exit 0