summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()