From 01262eb99dd8aaa9141831ec78351bb070cc84cc Mon Sep 17 00:00:00 2001 From: ndarshan Date: Fri, 10 Oct 2014 14:28:09 +0530 Subject: Plugins: Log message change in glusterpmd Changed the log message in check_proc_status.py from "Hostname not configured" to "'hostname_in_nagios' is not configured in /etc/nagios/nagios_server.conf" to make it more meaningful. Change-Id: Iacd0c6165bba97e87e0ab6a855a7314e4ac57102 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1120832 Signed-off-by: ndarshan Reviewed-on: http://review.gluster.org/8920 Reviewed-by: Sahina Bose Reviewed-by: Kanagaraj M --- plugins/check_proc_status.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/check_proc_status.py b/plugins/check_proc_status.py index 99f7832..bb9f2c5 100755 --- a/plugins/check_proc_status.py +++ b/plugins/check_proc_status.py @@ -39,6 +39,7 @@ _quotadService = "Quota" _ctdbdService = "CTDB" checkIdeSmartCmdPath = utils.CommandPath( 'check_ide_smart', '/usr/lib64/nagios/plugins/check_ide_smart') +nagios_server_conf_path = nscautils.__NAGIOSSERVER_CONF def getBrickStatus(volInfo): @@ -96,7 +97,8 @@ class App(): if not hostName: hostName = nscautils.getCurrentHostNameInNagiosServer() if not hostName: - logger.warn("Hostname is not configured") + logger.warn("'hostname_in_nagios' is not configured " + "in %s" % nagios_server_conf_path) time.sleep(sleepTime) continue status, msg = check_proc_util.getGlusterdStatus() -- cgit