Nagios not receiving passive checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Nagios not receiving passive checks

Post 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?
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios not receiving passive checks

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: Nagios not receiving passive checks

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios not receiving passive checks

Post by scottwilkerson »

You should set the Check Freshness to On

I would also kill off all those nsca processes, something is clearly wrong there

Code: Select all

killall -9 nsca
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: Nagios not receiving passive checks

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios not receiving passive checks

Post by scottwilkerson »

sitaonair wrote: The "Check Freshness" was also changed to "On", will be monitoring the alarm.
Sounds good
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked