summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorndarshan <dnarayan@redhat.com>2014-10-10 14:28:09 +0530
committerSahina Bose <sabose@redhat.com>2014-10-20 00:04:32 -0700
commit01262eb99dd8aaa9141831ec78351bb070cc84cc (patch)
tree66850a4db96e67bf5d4d45339476830a3234d8bd /plugins
parent84d6e941526d93afccf2779e6d8c516a945f9b60 (diff)
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 <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/8920 Reviewed-by: Sahina Bose <sabose@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/check_proc_status.py4
1 files changed, 3 insertions, 1 deletions
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()