I followed the tutorial at http://nagios.sourceforge.net/download/contrib/documentation/misc/NSCA_Setup.pdf.
But I'm using packages from EPEL on CentOS 6.
I have added a template for passive checks, service that uses the passive check template. I can see the TestMessage service on the web UI. When I try to send the result:
[root@g]# send_nsca -H localhost -p 5667 -c /etc/nagios/send_nsca.cfg < sample 0 data packet(s) sent to host successfully.
In the syslog, I see:
Feb 8 23:19:01 CentOS-60-64-minimal nsca: Handling the connection... Feb 8 23:19:01 CentOS-60-64-minimal nsca: End of connection...
How can I get this to work?