1
0
Fork 0
mirror of https://github.com/shouptech/nagios-plugin-check-rabbitmq.git synced 2026-02-03 14:49:41 +00:00

Changed HTTPError from UNKNOWN to CRITICAL

This commit is contained in:
Mike Shoup 2015-04-29 11:04:06 -06:00
parent be3fbac850
commit 5e3db2f880

View file

@ -216,8 +216,8 @@ def main():
print "UNKNOWN - %s is not a valid action" % args[0]
return RabbitAPIChecker.STATE_UNKNOWN
except urllib2.HTTPError, exception:
print "UNKNOWN - %s" % exception
return RabbitAPIChecker.STATE_UNKNOWN
print "CRITICAL - %s" % exception
return RabbitAPIChecker.STATE_CRITICAL
except IndexError:
print "UNKNOWN - %s requires one or more options" % args[0]
return RabbitAPIChecker.STATE_UNKNOWN