summaryrefslogtreecommitdiffstats
path: root/plugins/gluster_host_service_handler.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gluster_host_service_handler.py.in')
-rwxr-xr-xplugins/gluster_host_service_handler.py.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/gluster_host_service_handler.py.in b/plugins/gluster_host_service_handler.py.in
index db7cdad..1d7310e 100755
--- a/plugins/gluster_host_service_handler.py.in
+++ b/plugins/gluster_host_service_handler.py.in
@@ -44,10 +44,11 @@ def update_host_state(hostAddr, srvcName, statusCode):
cmdStr = "[%s] PROCESS_HOST_CHECK_RESULT;%s;%s;" \
"Host Status WARNING - " \
"Service(s) ['%s'] in CRITICAL state\n" \
- % (now, hostAddr, statusCode, srvcName)
+ % (now, hostAddr, utils.PluginStatusCode.OK, srvcName)
else:
cmdStr = "[%s] PROCESS_HOST_CHECK_RESULT;%s;%s;Host Status OK - " \
- "Services in good health\n" % (now, hostAddr, statusCode)
+ "Services in good health\n" \
+ % (now, hostAddr, utils.PluginStatusCode.OK)
_writeNagiosCommand(cmdStr)