[tribaal, r=gnuoy]

Changed the Nagios status when the queue data is not available from CRIT to UNKNOWN.
This commit is contained in:
Liam Young 2016-01-11 11:29:13 +00:00
commit 918d329ea3
1 changed files with 1 additions and 1 deletions

View File

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