From: osm@osm.rrze Date: Fri, 28 Feb 2014 10:57:41 +0000 (+0100) Subject: output critical and warning values, fix for not printing config in non-config-mode X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?a=commitdiff_plain;h=11748e654dbbff2bd5b4919762141d01a2de6ced;p=osmrrze.git output critical and warning values, fix for not printing config in non-config-mode --- diff --git a/scripts/munin-getdblag.sh b/scripts/munin-getdblag.sh index 18633d6..826e4a5 100755 --- a/scripts/munin-getdblag.sh +++ b/scripts/munin-getdblag.sh @@ -6,7 +6,7 @@ TS2=`date '+%s' --utc "--date=$LASTDBUPDATE"` TS1=`date '+%s'` if [ "$1" = "autoconf" ]; then - echo yes + echo No exit 0 fi @@ -15,10 +15,13 @@ if [ "$1" = "config" ]; then echo 'graph_args --lower-limit 0 ' echo 'graph_vlabel Seconds our DB copy is lagging behind the official DB' echo 'graph_category postgresql' + echo 'dblag.label databaselag' + echo 'dblag.type GAUGE' + echo 'dblag.warning 3600' + echo 'dblag.critical 86400' + exit 0 fi -echo 'dblag.label databaselag' -echo 'dblag.type GAUGE' let "DELAY=TS1-TS2" echo "dblag.value $DELAY"