output critical and warning values, fix for not printing config in non-config-mode
authorosm@osm.rrze <osm@osm.rrze.uni-erlangen.de>
Fri, 28 Feb 2014 10:57:41 +0000 (11:57 +0100)
committerosm@osm.rrze <osm@osm.rrze.uni-erlangen.de>
Fri, 28 Feb 2014 10:57:41 +0000 (11:57 +0100)
scripts/munin-getdblag.sh

index 18633d6bfda2fe855b02c1dd1bed0e81b11309e8..826e4a5618087a47b1db1be1cf01ee823eee964b 100755 (executable)
@@ -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"
 
This page took 0.074369 seconds and 4 git commands to generate.