NCSA stopped working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

NCSA stopped working

Post by vmesquita »

We have a few passive checks, and apparently NCSA stopped working. I can see the entries on the log, for instance:

Code: Select all

Jul 26 18:47:51 nagios xinetd[32620]: START: nsca pid=10191 from=::ffff:172.27.164.29
Jul 26 18:47:52 nagios xinetd[32620]: EXIT: nsca status=0 pid=10191 duration=1(sec)
However the state of it the check hasn't changed for over 1 hour.
I have already restarted xinetd and rebooted the Nagios Server, with no changes.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NCSA stopped working

Post by Box293 »

NSCA is running via xinetd, hence xinetd will log those entries every time inbound NSCA traffic is received.

Are you seeing any entries in the nagios log? /usr/local/nagios/var/nagios.log

This KB article will show you how to enable debug mode for NSCA to watch what is happening:

https://support.nagios.com/kb/article.php?id=83

What client are you using to send the NSCA check results?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: NCSA stopped working

Post by vmesquita »

I enabled the debug, this is a sample output in /var/log/messages:

Code: Select all

Jul 27 12:08:06 nagios xinetd[9473]: START: nsca pid=8223 from=::ffff:172.27.164.29
Jul 27 12:08:06 nagios nsca[8223]: Handling the connection...
Jul 27 12:08:07 nagios nsca[8221]: Time difference in packet: 0 seconds for host va540.selic.bc
Jul 27 12:08:07 nagios nsca[8221]: SERVICE CHECK -> Host Name: 'yyyyyy', Service Description: 'SYNC:SB', Return Code: '0', Output: ' TODO(S) O(S) DISCO(S) ESTA(O) SINCRONIZADO(S)'
Jul 27 12:08:07 nagios nsca[8221]: Attempting to write to nagios command pipe
Jul 27 12:08:07 nagios nsca[8221]: End of connection...
Jul 27 12:08:07 nagios xinetd[9473]: EXIT: nsca status=0 pid=8221 duration=1(sec)
Jul 27 12:08:07 nagios nsca[8223]: Time difference in packet: 0 seconds for host va540.selic.bc
Jul 27 12:08:07 nagios nsca[8223]: SERVICE CHECK -> Host Name: 'yyyyy', Service Description: 'SYNC:SP', Return Code: '0', Output: ' TODO(S) O(S) DISCO(S) ESTA(O) SINCRONIZADO(S)'
Jul 27 12:08:07 nagios nsca[8223]: Attempting to write to nagios command pipe
Jul 27 12:08:07 nagios nsca[8223]: End of connection...
Jul 27 12:08:07 nagios xinetd[9473]: EXIT: nsca status=0 pid=8223 duration=1(sec)
I don't see the entries in nagios log, however.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NCSA stopped working

Post by ssax »

Are you seeing them in Admin > Unconfigured Objects? The exit code is zero so it should be working.

Just to make sure that the command file is setup properly, please send the output of these commands:

Code: Select all

ls -ld /usr/local/nagios/var/rw
ls -l /usr/local/nagios/var/rw
Are you seeing any related errors in your /var/log/httpd/error_log or /var/log/httpd/ssl_error_log (if using SSL)?

Thank you
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: NCSA stopped working

Post by vmesquita »

Hi ssax,

We open a support call and the nagios.cmd had wrong permissions, because of an issue in /usr/local/bin/snmptraphandling.py . Now it's fixed. Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NCSA stopped working

Post by tmcdonald »

Great to hear! Mind if we close this up?
Former Nagios employee
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: NCSA stopped working

Post by vmesquita »

Sorry for the late reply. Feel free to close the topic.
Locked