From bf11f8828140c1ffac881af8bfb203c78048cf99 Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Wed, 29 Apr 2015 07:12:00 -0600 Subject: [PATCH] Rename memory_alarm method to mem_alarm --- check_rabbitmq.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_rabbitmq.py b/check_rabbitmq.py index e1eb7c5..df65cef 100755 --- a/check_rabbitmq.py +++ b/check_rabbitmq.py @@ -32,7 +32,7 @@ class RabbitAPIChecker(object): self.password = password self.port = port - def memory_alarm(self, args): + def mem_alarm(self, args): """Calls the API and checks if a high memory alarm has been triggerred.""" node = args[0] @@ -87,7 +87,7 @@ def main(): options.password, options.port) # Define actions available, will be found in args[0] - actions = {'mem_alarm': checker.memory_alarm} + actions = {'mem_alarm': checker.mem_alarm} try: if len(args) > 1: