Page 1 of 1

NSCA is not writing on log file(s)

Posted: Thu Feb 09, 2012 1:23 pm
by darthcolo
I have an installation of Nagios3 on my Debian sever. I have followed several tutorials for that and is working ok (I'm monitoring a client successfully).
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     
I have created a file named "test" with the following content: "localhost TestMessage 0 This is a test message." (separated by tabs)
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? :cry:

Thank you all!

P.S: The server is running over VirtualBox

Re: NSCA is not writing on log file(s)

Posted: Mon Feb 13, 2012 1:36 pm
by darthcolo
Anyone please?

Re: NSCA is not writing on log file(s)

Posted: Mon Feb 13, 2012 7:16 pm
by nscott
Are you using any kind of super daemon like xinetd?

Re: NSCA is not writing on log file(s)

Posted: Tue Feb 14, 2012 10:06 am
by darthcolo
nscott wrote:Are you using any kind of super daemon like xinetd?
I'm using openbsd-inetd