From 76465b3d4e7d3f7979d2171bf38f4aa082cfe85a Mon Sep 17 00:00:00 2001 From: salles Date: Thu, 20 Apr 2006 17:52:07 +0200 Subject: [PATCH] Deux plugins pour visualiser l'volution du wiki darcs-hash:20060420155207-72cb0-19fc5e720146446260748f1838378078bfb3884d.gz --- munin/wiki_pages | 14 ++++++++++++++ munin/wiki_users | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100755 munin/wiki_pages create mode 100755 munin/wiki_users 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`