fi
if [ "$1" = "config" ]; then
- echo "graph_title service's database"
+ echo "graph_title service database stats"
echo "graph_info This graph shows the IRC service's database stats."
echo "graph_category irc"
- echo "graph_order dbsize"
- echo "graph_scale yes"
+ echo "graph_printf %.0lf"
echo "graph_args --logarithmic -l 0.1"
+ echo "graph_scale no"
echo "dbsize.label DB size"
echo "dbsize.draw LINE2"
- echo "memos.label Stored memos"
- echo "memos.draw LINE2"
+ echo "dblines.label DB lines"
+ echo "dblines.draw LINE2"
exit 0
fi
grep -i "dbsize.value" /tmp/irc/servicestats.txt
-grep -i "memos.value" /tmp/irc/servicestats.txt
+grep -i "dblines.value" /tmp/irc/servicestats.txt
exit 0