From b40621bc3f1253adaa154428ddef758638b5d175 Mon Sep 17 00:00:00 2001 From: Nishanth Thomas Date: Tue, 8 Apr 2014 20:12:14 +0530 Subject: SNMP Trap Support : SNMP notification on status change These plugins will generate SNMP traps when there is a host or service state change in Nagios. Plugged into the Nagios Notification mechanism and uses netsnmp utils to generate SNMP traps Addressed the review comments Change-Id: I42c4d1968a48bc80e767f6fbc24d1637a92d21b0 Signed-off-by: Nishanth Thomas --- tests/test_gluster_host_service_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_gluster_host_service_handler.py') diff --git a/tests/test_gluster_host_service_handler.py b/tests/test_gluster_host_service_handler.py index 9c36f19..5bbdff6 100644 --- a/tests/test_gluster_host_service_handler.py +++ b/tests/test_gluster_host_service_handler.py @@ -70,8 +70,8 @@ class TestGlusterHostServiceHandler(TestCaseBase): "Service(s) [\'dummy srvc\']" " in CRITICAL state\n") - @mock.patch('plugins.gluster_host_service_handler.' \ - '_getHostMonitoringSrvcList') + @mock.patch( + 'plugins.gluster_host_service_handler._getHostMonitoringSrvcList') @mock.patch('plugins.gluster_host_service_handler.checkLiveStatus') @mock.patch('plugins.gluster_host_service_handler.update_host_state') def testCheckAndUpdateHostStateToUp(self, -- cgit