X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/35f4c7f2a9cad9a89ddee3654abe024781aad150..1751b31885773d33dcf3efb396f198f1d10a2221:/cookbooks/munin/files/default/plugins/replication_delay diff --git a/cookbooks/munin/files/default/plugins/replication_delay b/cookbooks/munin/files/default/plugins/replication_delay deleted file mode 100755 index f1761e84d..000000000 --- a/cookbooks/munin/files/default/plugins/replication_delay +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# Plugin to monitor the age of the imported data in the rendering db -# -# Parameters: -# -# config (required) -# autoconf (optional - used by munin-config) -# - -if [ "$1" = "config" ]; then - - echo 'graph_title Data import lag' - echo 'graph_args --base 1000 -l 0' - echo 'graph_vlabel minutes' - echo 'graph_category renderd' - echo 'age.label DB import age' - echo 'age.type GAUGE' - echo 'age.cdef age,60,/' - echo 'age.warning :600' - echo 'age.critical :3600' - exit 0 -fi - -state=${state:-/home/jburgess/replicate/state.txt} -tstamp=`sed -e '/^timestamp=/!d' -e 's/.*=//' -e 's/Z//' -e 's/T/Z/' -e 's/\\\\//' -e 's/\\\\//' -e q ${state}` -tstampsec=`date --date=$tstamp +%s` -nowsec=`date +%s` - - -echo "age.value " `expr $nowsec - $tstampsec`