mirror of https://github.com/zulip/zulip.git
nagios: Fix check_send_receive_time threshholds.
Previously, the CRITICAL state would never fire (because x > 6 => x > 3). Additionally, 6s is not so unusually high as to deserve being immediately pageable.
This commit is contained in:
parent
246bdbd829
commit
165b4d3126
|
@ -190,10 +190,10 @@ while msg_to_send not in msg_content:
|
|||
zulip_recipient.deregister(queue_id)
|
||||
|
||||
if options.nagios:
|
||||
if time_diff.seconds > 12:
|
||||
report('CRITICAL', time_diff)
|
||||
if time_diff.seconds > 3:
|
||||
report('WARNING', time_diff)
|
||||
if time_diff.seconds > 6:
|
||||
report('CRITICAL', time_diff)
|
||||
|
||||
if options.munin:
|
||||
print("sendreceive.value %s" % total_seconds(time_diff))
|
||||
|
|
Loading…
Reference in New Issue