send_nsca: Error: Timeout after 10 seconds

The official wiki page at http://munin-monitoring.org/wiki/HowToContactNagios says, the system can be configured by telnet. But no, you will get timeout.

Actually it can be tested via send_nsca like this:

# echo "test;test;0;test-output" | send_nsca -H 127.0.0.1 -p 5667 -c /etc/send_nsca.cfg -d ";"
1 data packet(s) sent to host successfully.

In syslog this must be appeared if debug is enabled:

Jun 27 17:46:40 nagiospro nsca[6122]: Connection from 127.0.0.1 port 48773
Jun 27 17:46:40 nagiospro nsca[6122]: Handling the connection…
Jun 27 17:46:50 nagiospro nsca[6122]: End of connection…
Jun 27 17:46:54 nagiospro nsca[6129]: Connection from 127.0.0.1 port 49285
Jun 27 17:46:54 nagiospro nsca[6129]: Handling the connection…
Jun 27 17:46:58 nagiospro nsca[6129]: SERVICE CHECK -> Host Name: ‘test’, Service Description: ‘test’, Return Code: ‘0’, Output: ‘test-output’
Jun 27 17:46:58 nagiospro nagios3: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;test;test;0;test-output
Jun 27 17:46:58 nagiospro nagios3: Warning: Passive check result was received for service ‘test’ on host ‘test’, but the host could not be found!
Jun 27 17:47:04 nagiospro nsca[6129]: End of connection…
Jun 27 17:49:32 nagiospro nagios3: Auto-save of retention data completed successfully.

avatar

About tompos

Hungary, Budapest
This entry was posted in IT. Bookmark the permalink.

Leave a Reply