I have tried to implement NSCA to monitor certain processes, but I'm first testing it in the server (locally).
So, I have installed and configured NSCA in the server according to http://nagios.sourceforge.net/download/ ... _Setup.pdf and I have set a service in Nagios3 to listen in the localhost (the server).
A netstat shows:
Code: Select all
# netstat -at
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:ipp *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN
tcp 0 0 *:nsca *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp6 0 0 localhost:ipp [::]:* LISTEN
tcp6 0 0 localhost:smtp [::]:* LISTEN
tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN
tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN
tcp6 0 0 [::]:www [::]:* LISTEN
The problem is: when I send the command "/usr/sbin/send_nsca localhost -c /etc/send_nsca.cfg < test" in console, it returns: "1 data packet(s) sent to host successfully.". But there is no trace of it in /var/log/messages, and there is no trace of it in the web interface of Nagios3 (TestMessage: PENDING).
So, in the server, apparently NSCA is sending packets to the server itself, but they are not arriving.
Does anyone has an idea of what may be wrong?
Thank you all!
P.S: The server is running over VirtualBox