diff --git a/munin/munin b/munin/munin index 0c0bb37b..99cf2efe 100755 --- a/munin/munin +++ b/munin/munin @@ -4,7 +4,7 @@ if [ "$1" = "config" ]; then echo 'graph_category system' 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 'update.label update' echo 'update.draw AREA' @@ -15,6 +15,9 @@ if [ "$1" = "config" ]; then echo 'html.label html' echo 'html.draw STACK' echo 'total.label Total' + echo 'max.label Maximum' + echo 'total.warning 0:300' + echo 'update.critical 0:240' exit 0 fi @@ -48,4 +51,7 @@ time_html=$(echo $end_html"-"$begin_html | bc -l) echo $time_html echo -n "total.value " -echo $time_update"+"$time_limits"+"$time_graph"+"$time_html | bc -l \ No newline at end of file +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"