Page 1 of 1

NCSA stopped working

Posted: Tue Jul 26, 2016 4:50 pm
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.

Re: NCSA stopped working

Posted: Tue Jul 26, 2016 10:37 pm
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?

Re: NCSA stopped working

Posted: Wed Jul 27, 2016 10:13 am
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.

Re: NCSA stopped working

Posted: Wed Jul 27, 2016 3:54 pm
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

Re: NCSA stopped working

Posted: Fri Jul 29, 2016 9:49 am
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!

Re: NCSA stopped working

Posted: Fri Jul 29, 2016 12:25 pm
by tmcdonald
Great to hear! Mind if we close this up?

Re: NCSA stopped working

Posted: Wed Aug 17, 2016 3:57 pm
by vmesquita
Sorry for the late reply. Feel free to close the topic.