From 11748e654dbbff2bd5b4919762141d01a2de6ced Mon Sep 17 00:00:00 2001 From: "osm@osm.rrze" Date: Fri, 28 Feb 2014 11:57:41 +0100 Subject: [PATCH] output critical and warning values, fix for not printing config in non-config-mode --- scripts/munin-getdblag.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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" -- 2.25.1