diff options
author | Timothy Asir <tjeyasin@redhat.com> | 2014-04-17 02:27:35 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-29 10:14:33 +0530 |
commit | 96c09b042087e1a0bfbc56400120bdd21d0d346d (patch) | |
tree | 0701214fc2f527eb2cb69a95594675bf0db09cd2 /plugins | |
parent | ab257f71eaf7ee61859ba54af36e1725adb6df8d (diff) |
fix send_nsca packet error
Change-Id: Id1a490777b0765b7e2bbfcbdb3615970af82f015
Signed-off-by: Timothy Asir <tjeyasin@redhat.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/nscautils.py.in | 8 |
1 files changed, 4 insertions, 4 deletions
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] |