summaryrefslogtreecommitdiffstats
path: root/func/minion/modules/nagios-check.py
diff options
context:
space:
mode:
Diffstat (limited to 'func/minion/modules/nagios-check.py')
-rw-r--r--func/minion/modules/nagios-check.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/func/minion/modules/nagios-check.py b/func/minion/modules/nagios-check.py
index 57c1df7..a902762 100644
--- a/func/minion/modules/nagios-check.py
+++ b/func/minion/modules/nagios-check.py
@@ -25,12 +25,12 @@ class Nagios(func_module.FuncModule):
}
func_module.FuncModule.__init__(self)
- def run(self, check_name):
+ def run(self, check_command):
"""
Runs a nagios check returning the return code, stdout, and stderr as a tuple.
"""
nagios_path='/usr/lib/nagios/plugins'
- command = '%s/%s' % (nagios_path, check_name)
+ command = '%s/%s' % (nagios_path, check_command)
cmdref = sub_process.Popen(command.split(),stdout=sub_process.PIPE,stderr=sub_process.PIPE, shell=False)
data = cmdref.communicate()