]> git.somenet.org - somenet/munin.git/blob - cron/servicestats.sh
hostap plugin update
[somenet/munin.git] / cron / servicestats.sh
1 #!/bin/sh
2
3 mkdir -p /tmp/irc/
4 chmod 775 /tmp/irc/
5
6 echo "dbsize.value `du -b data/anope.flat.db | awk '{print $1}'`" > /tmp/irc/servicestats.txt
7 echo "channels.value `egrep '^OBJECT ChannelInfo' data/anope.flat.db | wc -l`" >> /tmp/irc/servicestats.txt
8 echo "nickaliases.value `egrep '^OBJECT NickAlias' data/anope.flat.db | wc -l`" >> /tmp/irc/servicestats.txt
9 echo "nickcores.value `egrep '^OBJECT NickCore' data/anope.flat.db | wc -l`" >> /tmp/irc/servicestats.txt
10 echo "memos.value `egrep '^OBJECT Memo' data/anope.flat.db | wc -l`" >> /tmp/irc/servicestats.txt
11