Changed the Nagios status when the queue data is not available from CRIT to UNKNOWN.

This commit is contained in:
Christopher Glass 2015-12-02 08:38:33 +01:00
parent 7f43497691
commit 4b3f22d447
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]