3 LASTDBUPDATE=`cat /var/www/lastdbupdate.txt`
5 TS2=`date '+%s' --utc "--date=$LASTDBUPDATE"`
8 if [ "$1" = "autoconf" ]; then
13 if [ "$1" = "config" ]; then
14 echo 'graph_title databaselag'
15 echo 'graph_args --lower-limit 0 '
16 echo 'graph_vlabel Seconds our DB copy is lagging behind the official DB'
17 echo 'graph_category postgresql'
20 echo 'dblag.label databaselag'
21 echo 'dblag.type GAUGE'
23 echo "dblag.value $DELAY"