Updated NRPE file, NSCA checks stale

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dgsullivan01
Posts: 6
Joined: Mon Jul 02, 2012 2:00 pm

Updated NRPE file, NSCA checks stale

Post by dgsullivan01 »

Nagios Version 2
NRPE Version 2.12

I've been working on cleaning up our configuration files for quite some time now. With one AIX 6.1 machine when I copied over the new NRPE file and restarted NRPE, all of the passive checks became stale. The checks were OK for the longest time and sometimes one or two will report OK, but minutes later back to UNKNOWN.

The service definitions didn't change from:

Code: Select all

define service {
        service_description          passive1
        use                                 default-service
        host_name                       host1
        max_check_attempts        1
        normal_check_interval       1
        retry_check_interval          1
        active_checks_enabled     0
        freshness_threshold          604800
        check_command              check_pass_stale
}
I've restarted Nagios and restarted NRPE with the previous file; same results.

Thanks in advance for any suggestions.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Updated NRPE file, NSCA checks stale

Post by agriffin »

If reverting to the previous file didn't fix it, then it's probably not the issue. Even if it did, that would be extremely weird since NRPE and NSCA don't really have anything to do with each other.

I would probably ignore NRPE if it's working correctly and try to debug NSCA. Were there any other changes to this system around the time they starting going stale? How is send_nsca set up and running on the system? Do you have passive checks coming in successfully from other hosts?
dgsullivan01
Posts: 6
Joined: Mon Jul 02, 2012 2:00 pm

Re: Updated NRPE file, NSCA checks stale

Post by dgsullivan01 »

Silly mistake on my part.

All checks were disabled and re-enabled at one point forcing the passive checks to be active checks. This triggered the stale command on a schedule. Went through each service and disabled active checks.

Hopefully that resolves it.

Sorry for the user error ;)
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Updated NRPE file, NSCA checks stale

Post by agriffin »

Okay, well let us know if that didn't fix it!
Locked