mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 02:48:28 +00:00
Initial version
This commit is contained in:
parent
e41dd3ec88
commit
772423894a
1 changed files with 28 additions and 0 deletions
28
plugins/other/stats_apache2
Executable file
28
plugins/other/stats_apache2
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue