diff options
author | Seth Vidal <skvidal@fedoraproject.org> | 2007-10-08 16:34:50 -0400 |
---|---|---|
committer | Seth Vidal <skvidal@fedoraproject.org> | 2007-10-08 16:34:50 -0400 |
commit | 4df50c15698414d6c423262c764302f3f5f1f225 (patch) | |
tree | 568f7d0b820f7b8bfb5828e6df1a76dc3c6fe46c | |
parent | 5ded2eccc6a6d6c574843139bac8747013326dbd (diff) | |
download | func-4df50c15698414d6c423262c764302f3f5f1f225.tar.gz func-4df50c15698414d6c423262c764302f3f5f1f225.tar.xz func-4df50c15698414d6c423262c764302f3f5f1f225.zip |
fix up some items on nagios-check
-rw-r--r-- | func/minion/modules/nagios-check.py | 4 |
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() |