From eab2ca4f26adb9b661fbad855a9b46f308fc5911 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Fri, 20 Jun 2014 17:14:41 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/8131 Reviewed-by: Shubhendu Tripathi Reviewed-by: Sahina Bose --- plugins/server_utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/server_utils.py') 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(): -- cgit