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:
parent
0ba59c23bb
commit
6a640b9172
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class RabbitAPIChecker(object):
|
||||||
def check_nodes(self, args=None, critical=2, warning=1):
|
def check_nodes(self, args=None, critical=2, warning=1):
|
||||||
""" Checks if all nodes on the cluster are running"""
|
""" Checks if all nodes on the cluster are running"""
|
||||||
|
|
||||||
if args:
|
if len(args) > 1:
|
||||||
return ("UNKNOWN - Unexpected arguments found", self.STATE_UNKNOWN)
|
return ("UNKNOWN - Unexpected arguments found", self.STATE_UNKNOWN)
|
||||||
|
|
||||||
url = "http://%s:%s/api/nodes" % (self.hostname, self.port)
|
url = "http://%s:%s/api/nodes" % (self.hostname, self.port)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue