TS1=`date '+%s'`
if [ "$1" = "autoconf" ]; then
- echo yes
+ echo No
exit 0
fi
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"