2
0
Fork 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
2011-12-18 15:10:14 +01:00

28 lines
No EOL
640 B
Bash
Executable file

#!/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