Changed the Nagios status when the queue data is not available from CRIT to UNKNOWN.
This commit is contained in:
parent
7f43497691
commit
4b3f22d447
|
@ -49,7 +49,7 @@ def check_stats(stats_collated, limits):
|
|||
((l_vhost, l_queue), (int(t_warning), int(t_critical)))
|
||||
for l_vhost, l_queue, t_warning, t_critical in limits)
|
||||
if not (stats_collated):
|
||||
yield 'No Queues Found', 'No Vhosts Found', None, "CRIT"
|
||||
yield 'No Queues Found', 'No Vhosts Found', None, "UNKNOWN"
|
||||
# Go through the stats and compare again limits, if any.
|
||||
for l_vhost, l_queue in sorted(stats_collated):
|
||||
m_all = stats_collated[l_vhost, l_queue]
|
||||
|
|
Loading…
Reference in New Issue