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:
parent
c382a8da2f
commit
61387c2856
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user