projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fordsa' of https://git.adam-barratt.org.uk/git/mirror/dsa-nagios
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
checks
/
dsa-check-config
diff --git
a/dsa-nagios-checks/checks/dsa-check-config
b/dsa-nagios-checks/checks/dsa-check-config
index
2772994
..
7ce992e
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-config
+++ b/
dsa-nagios-checks/checks/dsa-check-config
@@
-9,7
+9,7
@@
set -e
err=0
log() {
err=0
log() {
- if [ "$
0
" = "ok" ] && [ "$err" = 0 ]; then
+ if [ "$
1
" = "ok" ] && [ "$err" = 0 ]; then
err=0
elif [ "$1" = "warn" ] && [ "$err" -lt 1 ]; then
err=1
err=0
elif [ "$1" = "warn" ] && [ "$err" -lt 1 ]; then
err=1