NSCA is not writing on log file(s)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
darthcolo
Posts: 9
Joined: Thu Feb 09, 2012 12:59 pm

NSCA is not writing on log file(s)

Post 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
darthcolo
Posts: 9
Joined: Thu Feb 09, 2012 12:59 pm

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

Post by darthcolo »

Anyone please?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post by nscott »

Are you using any kind of super daemon like xinetd?
Nicholas Scott
Former Nagios employee
darthcolo
Posts: 9
Joined: Thu Feb 09, 2012 12:59 pm

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

Post by darthcolo »

nscott wrote:Are you using any kind of super daemon like xinetd?
I'm using openbsd-inetd
Locked