From ec287fcc84f8bebb52ccaad63f894689fb79862d Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Wed, 30 Apr 2014 21:40:23 +0530 Subject: plugins: Changed nsca method for syslog monitoring Changed the syslog monitoring plugin to use subprocess to send the nsca command There was an issue with using the utils method when being called from rsyslog service Change-Id: Ia4dea2b0f942ce815f123ece1fba8fd1f18fc6be Signed-off-by: Sahina Bose Reviewed-on: http://review.gluster.org/7639 Reviewed-by: Timothy Asir --- tests/test_check_gluster_syslog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_check_gluster_syslog.py b/tests/test_check_gluster_syslog.py index a6dce45..c8c5d6a 100644 --- a/tests/test_check_gluster_syslog.py +++ b/tests/test_check_gluster_syslog.py @@ -29,7 +29,7 @@ class TestGlusterSyslog(TestCaseBase): # Method to test volume perf data when no matching host method @mock.patch('plugins.nscautils.getNagiosClusterName') - @mock.patch('plugins.nscautils.send_to_nsca') + @mock.patch('plugins.nscautils.send_to_nsca_subproc') def test_checkProcessMsg(self, mock_send_to_nsca, mock_getNagiosClusterName): mock_getNagiosClusterName.return_value = "test-cluster" -- cgit