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

Fix check_nodes (first argument is always ignored)

This commit is contained in:
Mike Shoup 2015-04-29 09:00:09 -06:00
parent 0ba59c23bb
commit 6a640b9172

View file

@ -103,7 +103,7 @@ class RabbitAPIChecker(object):
def check_nodes(self, args=None, critical=2, warning=1):
""" Checks if all nodes on the cluster are running"""
if args:
if len(args) > 1:
return ("UNKNOWN - Unexpected arguments found", self.STATE_UNKNOWN)
url = "http://%s:%s/api/nodes" % (self.hostname, self.port)