mirror of
https://github.com/shouptech/nagios-plugin-check-rabbitmq.git
synced 2026-02-03 06:39:43 +00:00
Changed HTTPError from UNKNOWN to CRITICAL
This commit is contained in:
parent
be3fbac850
commit
5e3db2f880
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue