diff --git a/plugins/other/stats_apache2 b/plugins/other/stats_apache2 new file mode 100755 index 00000000..432959a6 --- /dev/null +++ b/plugins/other/stats_apache2 @@ -0,0 +1,28 @@ +#!/bin/sh +# +# By InboX +# site: http://munin.kazylax.net/ +####################################### + +if [ "$1" = "config" ]; then + echo "graph_title Serveur apache2" + echo 'graph_category Programmes' + echo 'graph_args --base 1000 -l 0' + echo 'graph_vlabel Apache2' + echo 'graph_scale no' + echo "up.label Apache en ligne" + echo 'up.draw AREA' + echo "down.label Apache hors ligne" + echo 'down.draw AREA' + exit 0 +fi + +if [ ! -f "/var/run/apache2.pid" ]; +then +echo -n "down.value 0.6" +fi + +if [ -f "/var/run/apache2.pid" ]; +then +echo -n "up.value 1" +fi \ No newline at end of file