submit_check_result issue - nsca

I am running nscd on my central server and am accepting passive service checks. But it is not accepting nsca reports from the nsca client (remote).

When I manually run (as a test) the submit_check_result script from the client, I get this error:

Error: Server closed connection before init packet was received
Error: Could not read init packet from server

netstat -a|grep nsca (on central server)
tcp 0 0 *:nsca : LISTEN
tcp 0 0 stpss1ml:nsca 172.27.32.31:35081 TIME_WAIT
tcp 0 0 stpss1ml:nsca 172.27.32.31:35082 TIME_WAIT
tcp 0 0 stpss1ml:nsca 172.27.32.31:35083 TIME_WAIT

Nothing in the var/nagios.log or the /var/log/messages file about the problem.

Has anyone else had this issue?

:shock:

Did you allow connections from the remote machine? Follow the docs for nsca closely, and double check that you made the changes needed. If the demon is not setup to allow that remote IP, then of course, it won’t work.