From 6a640b9172ab483ee75611fb3744929a38a78d46 Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Wed, 29 Apr 2015 09:00:09 -0600 Subject: [PATCH] Fix check_nodes (first argument is always ignored) --- check_rabbitmq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_rabbitmq.py b/check_rabbitmq.py index 3231761..3c40f49 100755 --- a/check_rabbitmq.py +++ b/check_rabbitmq.py @@ -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)