I have Nagios Core4.3.4 installed on and everything works fine. I want to monitor few remote servers with NSCA since I can't use NRPE to poll into those servers.
I installed NSCA from this https://support.nagios.com/kb/article/n ... -x-79.html
When I testing local on Core (Where NSCA is installed) it works fine:
Code: Select all
/usr/local/nagios/libexec$ ./send_nsca -H localhost -p 5667 -c /usr/local/nagios/etc/send_nsca.cfg < ./test_nsca
Code: Select all
nsca[2118]: Handling the connection...
nsca[2118]: Time difference in packet: 0 seconds for host hanjin
nsca[2118]: SERVICE CHECK -> Host Name: 'hanjin', Service Description: 'OS Version', Return Code: '1', Output: 'This is the test result with a WARNING status.'
nsca[2118]: Attempting to write to nagios command pipe
nsca[2118]: End of connection...
nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;hanjin;OS Version;1;This is the test result with a WARNING status.
nagios: PASSIVE SERVICE CHECK: hanjin;OS Version;1;This is the test result with a WARNING status.
nagios: SERVICE ALERT: hanjin;OS Version;WARNING;HARD;1;This is the test result with a WARNING status.
Running this command from the remote host doesn't change the status of the service on Nagios Core:
Code: Select all
/usr/local/nagios/libexec$ ./send_nsca hanjin -c /usr/local/nagios/etc/send_nsca.cfg < /tmp/nsca_test
Code: Select all
/usr/local/nagios/libexec$ ./send_nsca hanjin -c /usr/local/nagios/etc/send_nsca.cfg < /tmp/nsca_test
Code: Select all
Dec 12 10:02:15 hanjin nsca[3153]: Handling the connection...
Dec 12 10:02:16 hanjin nsca[3153]: Time difference in packet: 0 seconds for host hanjin
Dec 12 10:02:16 hanjin nsca[3153]: SERVICE CHECK -> Host Name: 'hanjin', Service Description: 'CPU Load', Return Code: '1', Output: 'This is the test result with a WARNING status.'
Dec 12 10:02:16 hanjin nsca[3153]: Attempting to write to nagios command pipe
Dec 12 10:02:16 hanjin nsca[3153]: Command file '/usr/local/nagios/var/rw/nagios.cmd' does not exist, attempting to use alternate dump file '/usr/local/nagios/var/rw/nsca.dump' for output
Dec 12 10:02:16 hanjin nsca[3153]: Could not open alternate dump file '/usr/local/nagios/var/rw/nsca.dump' for appending
Dec 12 10:02:16 hanjin nsca[3153]: End of connection...
Code: Select all
Could not open alternate dump file '/usr/local/nagios/var/rw/nsca.dump' for appending
Thanks.