X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-config;fp=dsa-nagios-checks%2Fchecks%2Fdsa-check-config;h=7ce992e75ce0719f4b21c13f8c62f9dc70b35a4b;hb=d15470c7d8969c2be13b330e3f56a061caad5b31;hp=2772994279e09af224ec7ac7e5e3233ce194a413;hpb=9a1809e53ff50b3cc865e0d6642f206a2999f6bc;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-config b/dsa-nagios-checks/checks/dsa-check-config index 2772994..7ce992e 100755 --- 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() { - if [ "$0" = "ok" ] && [ "$err" = 0 ]; then + if [ "$1" = "ok" ] && [ "$err" = 0 ]; then err=0 elif [ "$1" = "warn" ] && [ "$err" -lt 1 ]; then err=1