Passive check freshness check not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Passive check freshness check not working

Post by avandemore »

Opps, that was supposed to be >= as shown by the 20 minutes value I suggested.
Previous Nagios employee
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Passive check freshness check not working

Post by snapon_admin »

I tried that on one of the checks, it stayed green for the 20 minute interval and then went back to warning again with the "no passive checks" received script output.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Passive check freshness check not working

Post by avandemore »

How are the passive checks received? SNMP traps, NRDP, NSCA, etc?

While I rather doubt this is the solution, you can restore a previous configuration via XI > Configure > CCM > Configuration Snapshots and doing an Apply Config. You would use the most recent one prior to yesterday if you do this. Also remember this will undo all configuration changes in Nagios XI since that point.
Previous Nagios employee
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Passive check freshness check not working

Post by snapon_admin »

NSCA, and yeah I'd prefer not to do that, but I am saving that as a last resort.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Passive check freshness check not working

Post by avandemore »

Perhaps a project for another day but NSCA has seen its first update in a long time:

https://github.com/NagiosEnterprises/ns ... ease-2.9.2

Are we absolutely sure checks are being received?

Code: Select all

# tcpdump -i any -n "src host <remote ip> and dst port 5667" -w /tmp/capture.cap
You can run that for one of these 20 minute durations and PM the resulting /tmp/capture.cap.
Previous Nagios employee
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Passive check freshness check not working

Post by snapon_admin »

tcpdump appears to not be a thing on my server, getting syntax error when I try.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Passive check freshness check not working

Post by avandemore »

Ok, try this:

Code: Select all

# yum install -y -q tcpdump
Then retry.
Previous Nagios employee
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: Passive check freshness check not working

Post by snapon_admin »

My bad, tcpdump wasn't the issue, it's the -n option that's the syntax error. I've used tcpdump before so it's definitely on there.

Code: Select all

[root@lisl-ngos-01-pv ~]# tcpdump -h
tcpdump version 4.1-PRE-CVS_2016_05_10
libpcap version 1.4.0
Usage: tcpdump [-aAdDefhIJKlLnNOpqRStuUvxX] [ -B size ] [ -c count ]
                [ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ]
                [ -i interface ] [ -j tstamptype ] [ -M secret ]
                [ -Q|-P in|out|inout ]
                [ -r file ] [ -s snaplen ] [ -T type ] [ -w file ]
                [ -W filecount ] [ -y datalinktype ] [ -z command ]
                [ -Z user ] [ expression ]
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Passive check freshness check not working

Post by avandemore »

Perhaps you're on CentOS/RHEL 6, 7 has a newer tcpdump.

Anyways, you can just omit the -n, it isn't needed just perhaps nicer.
Previous Nagios employee
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Passive check freshness check not working

Post by avandemore »

pcap file received, you are getting the check data from that host.

Can you send over your /usr/local/nagios/etc/nsca.cfg?

Also in that file changing to debug=1 and restarting xinetd/nsca should show more verbose messages in /var/log/messages.
Previous Nagios employee
Locked