diff options
author | Shubhendu Tripathi <shtripat@redhat.com> | 2014-05-05 14:20:53 +0530 |
---|---|---|
committer | Timothy Asir <tim.gluster@gmail.com> | 2014-05-06 01:46:07 -0700 |
commit | 704ee1bf30615c40f14d24f86f9611a79fd51aa1 (patch) | |
tree | 931fab435ec26c2516ebfa6ca1b72da8664745df /plugins | |
parent | 67392b9e16f009114be4f340aa0f7d3e9c48478b (diff) |
nagios-server-addons: Disabled host event handler
Disabled the event handler for gluster hosts
Change-Id: Ib81245add29126761185dec110015ecb73449a3a
Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com>
Reviewed-on: http://review.gluster.org/7664
Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
Reviewed-by: Ramesh N <rnachimu@redhat.com>
Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/gluster_host_service_handler.py.in | 5 |
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) |