Ajout d'alertes

darcs-hash:20070921174945-72cb0-d93add0fd0fc5cc227e53a458a8ea54fd122048a.gz
This commit is contained in:
salles 2007-09-21 19:49:45 +02:00
parent 8986bbf60b
commit b4f366baf3

View file

@ -4,7 +4,7 @@ if [ "$1" = "config" ]; then
echo 'graph_category system' echo 'graph_category system'
echo 'graph_title Munin' echo 'graph_title Munin'
echo 'graph_args --base 1000 --lower-limit 0' echo 'graph_args --base 1000 --lower-limit 0 --rigid'
echo 'graph_vlabel Temps de traitement (s)' echo 'graph_vlabel Temps de traitement (s)'
echo 'update.label update' echo 'update.label update'
echo 'update.draw AREA' echo 'update.draw AREA'
@ -15,6 +15,9 @@ if [ "$1" = "config" ]; then
echo 'html.label html' echo 'html.label html'
echo 'html.draw STACK' echo 'html.draw STACK'
echo 'total.label Total' echo 'total.label Total'
echo 'max.label Maximum'
echo 'total.warning 0:300'
echo 'update.critical 0:240'
exit 0 exit 0
fi fi
@ -49,3 +52,6 @@ echo $time_html
echo -n "total.value " echo -n "total.value "
echo $time_update"+"$time_limits"+"$time_graph"+"$time_html | bc -l echo $time_update"+"$time_limits"+"$time_graph"+"$time_html | bc -l
# Le temps de rafraîchissement de munin est de 5 minutes
echo "max.value 300"