Page 1 of 1
Nagios not receiving passive checks
Posted: Fri Aug 07, 2020 1:37 am
by sitaonair
Hi, I have an alarm which monitors is Nagios is receiving passive checks as attached.
There is a cron running every 5 mins sending the below to Nagios which when working properly will have the alarm in OK status:
(bash -c "/bin/echo \"-Services Tools;Nagios passive checks processing;0;Ok\" | /usr/local/nagios/libexec/send_nsca -H ops-nagxi-01 -d \";\" -c /usr/local/nagios/etc/send_nsca.cfg" > /dev/null 2>&1
However the alarm status is always in CRITICAL, how can I check if passive checks are being processed?
Re: Nagios not receiving passive checks
Posted: Fri Aug 07, 2020 8:22 am
by scottwilkerson
Can you show the "Check Settings" Tab for this service?
If this is setup correctly, Active checks show be off, and Freshness checks should be on.
Re: Nagios not receiving passive checks
Posted: Sat Aug 08, 2020 12:28 am
by sitaonair
Hi, as attached, noticed many of the nsca processes stuck on the server as well:
nagios 8766 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 8930 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 9904 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 9997 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 10006 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 10007 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 10016 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 10143 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 11170 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 12731 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 12773 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 12866 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 12983 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 12985 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 13240 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 13727 1 0 03:30 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 13877 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 14016 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 14017 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 14244 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 14247 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 14431 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 14655 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
nagios 14704 1 0 Aug07 ? 00:00:00 nsca -c /usr/local/nagios/etc/nsca.cfg --inetd
Re: Nagios not receiving passive checks
Posted: Mon Aug 10, 2020 6:56 am
by scottwilkerson
You should set the
Check Freshness to On
I would also kill off all those nsca processes, something is clearly wrong there
Re: Nagios not receiving passive checks
Posted: Tue Aug 11, 2020 2:54 am
by sitaonair
We had 80 Zombie processes and increasing, coupled with the nsca stuck processes, the nagios server was rebooted.
The "Check Freshness" was also changed to "On", will be monitoring the alarm.
Re: Nagios not receiving passive checks
Posted: Tue Aug 11, 2020 7:01 am
by scottwilkerson
sitaonair wrote:
The "Check Freshness" was also changed to "On", will be monitoring the alarm.
Sounds good