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

Rename memory_alarm method to mem_alarm

This commit is contained in:
Mike Shoup 2015-04-29 07:12:00 -06:00
parent 5d8c39df97
commit bf11f88281

View file

@ -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: