From 61387c28564fe974497dd71119a7dbf6c6da1397 Mon Sep 17 00:00:00 2001 From: ranl Date: Tue, 7 Jan 2014 16:52:42 +0200 Subject: [PATCH] check_modjk: corner issue of -c 1 -w 1 --- nagios/check_modjk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagios/check_modjk.py b/nagios/check_modjk.py index 7fee3a0..b61833d 100644 --- a/nagios/check_modjk.py +++ b/nagios/check_modjk.py @@ -84,7 +84,7 @@ if __name__ == '__main__': count = len(errorWorkers) state = '' - if count > opts.warning: + if count > opts.warning or (opts.warning == 1 and count == 1): state = 'OK' elif opts.warning >= count > opts.critical: state = 'WARN'