projects
/
osmrrze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
output critical and warning values, fix for not printing config in non-config-mode
[osmrrze.git]
/
scripts
/
munin-getdblag.sh
diff --git
a/scripts/munin-getdblag.sh
b/scripts/munin-getdblag.sh
index 18633d6bfda2fe855b02c1dd1bed0e81b11309e8..826e4a5618087a47b1db1be1cf01ee823eee964b 100755
(executable)
--- 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
TS1=`date '+%s'`
if [ "$1" = "autoconf" ]; then
- echo
yes
+ echo
No
exit 0
fi
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 '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
fi
-echo 'dblag.label databaselag'
-echo 'dblag.type GAUGE'
let "DELAY=TS1-TS2"
echo "dblag.value $DELAY"
let "DELAY=TS1-TS2"
echo "dblag.value $DELAY"
This page took
0.045435 seconds
and
4
git commands to generate.