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