From 704ee1bf30615c40f14d24f86f9611a79fd51aa1 Mon Sep 17 00:00:00 2001 From: Shubhendu Tripathi Date: Mon, 5 May 2014 14:20:53 +0530 Subject: nagios-server-addons: Disabled host event handler Disabled the event handler for gluster hosts Change-Id: Ib81245add29126761185dec110015ecb73449a3a Signed-off-by: Shubhendu Tripathi Reviewed-on: http://review.gluster.org/7664 Reviewed-by: Kanagaraj M Reviewed-by: Ramesh N Reviewed-by: Timothy Asir --- plugins/gluster_host_service_handler.py.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/gluster_host_service_handler.py.in') 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) -- cgit