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:
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]
|
print "UNKNOWN - %s is not a valid action" % args[0]
|
||||||
return RabbitAPIChecker.STATE_UNKNOWN
|
return RabbitAPIChecker.STATE_UNKNOWN
|
||||||
except urllib2.HTTPError, exception:
|
except urllib2.HTTPError, exception:
|
||||||
print "UNKNOWN - %s" % exception
|
print "CRITICAL - %s" % exception
|
||||||
return RabbitAPIChecker.STATE_UNKNOWN
|
return RabbitAPIChecker.STATE_CRITICAL
|
||||||
except IndexError:
|
except IndexError:
|
||||||
print "UNKNOWN - %s requires one or more options" % args[0]
|
print "UNKNOWN - %s requires one or more options" % args[0]
|
||||||
return RabbitAPIChecker.STATE_UNKNOWN
|
return RabbitAPIChecker.STATE_UNKNOWN
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue