mirror of
https://github.com/shouptech/nagios-plugin-check-rabbitmq.git
synced 2026-02-03 06:39:43 +00:00
Rename memory_alarm method to mem_alarm
This commit is contained in:
parent
5d8c39df97
commit
bf11f88281
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue