1
0
mirror of https://github.com/ranl/monitor-utils.git synced 2024-11-22 15:33:43 +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) count = len(errorWorkers)
state = '' state = ''
if count > opts.warning: if count > opts.warning or (opts.warning == 1 and count == 1):
state = 'OK' state = 'OK'
elif opts.warning >= count > opts.critical: elif opts.warning >= count > opts.critical:
state = 'WARN' state = 'WARN'