summaryrefslogtreecommitdiffstats
path: root/plugins/server_utils.py
diff options
context:
space:
mode:
authorRamesh Nachimuthu <rnachimu@redhat.com>2014-06-20 17:14:41 +0530
committerSahina Bose <sabose@redhat.com>2014-09-15 03:20:55 -0700
commiteab2ca4f26adb9b661fbad855a9b46f308fc5911 (patch)
tree149da091f9bb60023e3701295b11a617711269b4 /plugins/server_utils.py
parent5f1536a1ae99a15cdb4505ad94278423bf72cf27 (diff)
autoconf: verify the configurations before restarting nagios
Verify the Nagios configuration before restarting the nagios server. It helps in accidently stoping the nagios server because of config error. Change-Id: I8c7cb5663bf42d73812577e9b162434cb2ecfdfe Bug-Url: https://bugzilla.redhat.com/1138943 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/8131 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins/server_utils.py')
-rwxr-xr-xplugins/server_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/server_utils.py b/plugins/server_utils.py
index e2271ba..ab5b4e8 100755
--- a/plugins/server_utils.py
+++ b/plugins/server_utils.py
@@ -24,10 +24,12 @@ from pynag import Model
from glusternagios import utils
import submit_external_command
from constants import NRPE_PATH
+from constants import NAGIOS_PATH
serviceCmdPath = utils.CommandPath("service", "/sbin/service", )
nrpeCmdPath = utils.CommandPath("check_nrpe", NRPE_PATH, )
+nagiosCmdPath = utils.CommandPath("nagios", NAGIOS_PATH, )
def restartNagios():