summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-04-30 21:40:23 +0530
committerSahina Bose <sabose@redhat.com>2014-05-04 21:55:27 -0700
commitec287fcc84f8bebb52ccaad63f894689fb79862d (patch)
treebf61f33a87f73d61c6c9192cd949476c20cad134 /tests
parent1bf8bbea994adbe10ff134bd75f569eccbebc42a (diff)
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 <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7639 Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_check_gluster_syslog.py2
1 files changed, 1 insertions, 1 deletions
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"