2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/other/stats_apache2

28 lines
640 B
Plaintext
Raw Normal View History

2009-01-16 18:15:18 +01:00
#!/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