summaryrefslogtreecommitdiffstats
path: root/plugins/check_proc_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_proc_status.py')
-rwxr-xr-xplugins/check_proc_status.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_proc_status.py b/plugins/check_proc_status.py
index 80a41c8..20b7b32 100755
--- a/plugins/check_proc_status.py
+++ b/plugins/check_proc_status.py
@@ -166,9 +166,9 @@ def sendShdStatus(hostName, volInfo):
if __name__ == '__main__':
- #Get the volume status
- #status = 0
- hostName = socket.getfqdn()
+ hostName = nscautils.getCurrentHostNameInNagiosServer()
+ if not hostName:
+ hostName = socket.getfqdn()
if hostName == "localhost.localdomain" or hostName == "localhost":
sys.stderr.write("failed to find localhost fqdn")