diff --git a/munin/wiki_pages b/munin/wiki_pages new file mode 100755 index 00000000..102501eb --- /dev/null +++ b/munin/wiki_pages @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ "$1" = "config" ]; then + + echo 'host_name wiki' + echo 'graph_title Nombres de pages' + echo "graph_args --base 1000 --lower-limit 0" + echo "graph_vlabel nombre d'utilisateurs" + echo 'total.label Total' + echo 'total.draw AREA' + exit 0 +fi + +echo "total.value" `ls /var/local/wiki/data/pages/ | grep -v MoinEditorBackup | wc -l` diff --git a/munin/wiki_users b/munin/wiki_users new file mode 100755 index 00000000..bf4de69c --- /dev/null +++ b/munin/wiki_users @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ "$1" = "config" ]; then + + echo 'host_name wiki' + echo 'graph_title Utilisateurs wiki' + echo "graph_args --base 1000 --lower-limit 0" + echo "graph_vlabel nombre d'utilisateurs" + echo 'enregistres.label Nb enregistrés' + echo 'enregistres.draw AREA' + echo 'favoris.label Nb avec favoris' + exit 0 +fi + +echo "enregistres.value" `ls /var/local/wiki/data/user/ | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | wc -l` +echo "favoris.value" `ls /var/local/wiki/data/user/ | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.bookmark$' | wc -l`