1
0
mirror of https://github.com/ranl/monitor-utils.git synced 2024-11-25 08:53:41 +01:00

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

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'