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:
Tim Abbott 2016-11-17 16:02:21 -08:00
parent 246bdbd829
commit 165b4d3126
1 changed files with 2 additions and 2 deletions

View File

@ -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))