From 96c09b042087e1a0bfbc56400120bdd21d0d346d Mon Sep 17 00:00:00 2001 From: Timothy Asir Date: Thu, 17 Apr 2014 02:27:35 +0530 Subject: fix send_nsca packet error Change-Id: Id1a490777b0765b7e2bbfcbdb3615970af82f015 Signed-off-by: Timothy Asir --- plugins/nscautils.py.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/nscautils.py.in') diff --git a/plugins/nscautils.py.in b/plugins/nscautils.py.in index 6ad96f5..56db577 100644 --- a/plugins/nscautils.py.in +++ b/plugins/nscautils.py.in @@ -44,10 +44,10 @@ def getNagiosClusterName(): def send_to_nsca(hostName, serviceName, exitStatus, resultString): - cmddata = '%s\t%s\t%s\t%s' % (hostName, - serviceName, - exitStatus, - resultString) + cmddata = '%s\t%s\t%s\t%s\n' % (hostName, + serviceName, + exitStatus, + resultString) nagiosIP = getNagiosServerIP() command_send_nsca = [__NSCA_CMD_PATH.cmd, '-H', nagiosIP, '-c', __NSCA_CONF_PATH] -- cgit