check_modjk: corner issue of -c 1 -w 1

This commit is contained in:
ranl 2014-01-07 16:52:42 +02:00
parent c382a8da2f
commit 61387c2856
1 changed files with 1 additions and 1 deletions

View File

@ -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'