diff --git a/munin/jabber b/munin/jabber new file mode 100755 index 00000000..67118736 --- /dev/null +++ b/munin/jabber @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Plugin pour compter les comptes jabber +# + +if [ "$1" = "config" ]; then + echo 'host_name jabber' + echo 'graph_title Utilisateurs jabber' + echo 'graph_vlabel nb' + echo 'crans.label Nombre de comptes' + echo "crans.draw AREA" + echo 'user.label Utilisateurs connectés' + exit 0 +fi + +echo "crans.value `ls /var/lib/jabber/jabber.crans.org | wc -l`" +echo "user.value `netstat -tn | grep ':5223 .*ESTABLISHED' | wc -l`"