2
responses

Hello,
nxlog was sending to nagios log server just fine for a few days and then all of a sudden we started seeing the below errors in the nxlog.log file that are preventing logs from being sent.

ERROR om_tcp send failed; An existing connection was forcibly closed by the remote host.

ERROR couldn't connect to tcp socket on xx.xx.xxx.xx:3515; No connection could be made because the target machine actively refused it.

Is this something that you would support or would we need to go through Nagios support instead? We have already tried restarting the nxlog service but the issue remains.

 

Thank you 

AskedJanuary 4, 2016 - 10:33pm

Answers (2)

It's unlikely that this is due to nxlog itself. The connection is refused because the log server crashed or is no longer accepting connections. From the error message it sounds like the first may be the case.

This error is a network-related error occurred while establishing a connection to the Server. It means that the error is occurring because there is no server listening at the hostname and port you assigned. It happens that something is preventing a connection to the port or hostname. Either there is a firewall blocking the connection or the process that is hosting the service is not listening on that specific port. This may be because it is not running at all or because it is listening on a different port. So, no connection can be established. The solution to this problem is that connect to the same end point your server is listening on.