Page 1 of 1

Updated NRPE file, NSCA checks stale

Posted: Tue Nov 06, 2012 11:44 am
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.

Re: Updated NRPE file, NSCA checks stale

Posted: Tue Nov 06, 2012 11:56 am
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?

Re: Updated NRPE file, NSCA checks stale

Posted: Tue Nov 06, 2012 1:03 pm
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 ;)

Re: Updated NRPE file, NSCA checks stale

Posted: Tue Nov 06, 2012 2:24 pm
by agriffin
Okay, well let us know if that didn't fix it!