3.4.0 New install/setup. Host Check freshness not working.

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
trey85stang
Posts: 10
Joined: Thu Apr 28, 2011 4:39 pm

3.4.0 New install/setup. Host Check freshness not working.

Post by trey85stang »

Hey all, its been a few years since I have setup a nagios server from scratch. But I am having a problem with host checks not timing out with the check_freshness.

Here are the templates I am using:

Code: Select all


define host {
        name                            generic-host
        event_handler_enabled           1
        flap_detection_enabled          1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        notification_period             24x7
        notifications_enabled           1
        failure_prediction_enabled      1
        register                        0
}

define host {
        name                            passive_host
        check_command                   host-is-stale
        use                             generic-host
        max_check_attempts              3
        check_interval                  5
        retry_interval                  1
        active_checks_enabled           0
        passive_checks_enabled          1
        check_period                    24x7
        obsess_over_host                1
        check_freshness                 1
        freshness_threshold             480
        event_handler_enabled           1
        flap_detection_enabled          1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        contact_groups                  on_call
        notification_interval           60
        notification_period             24x7
        notification_options            d,r,s
        notifications_enabled           1
        failure_prediction_enabled      1
        register                        0
}
Any idea what I am missing here? If it matters, these hosts have never received an incoming host check... but that does not seem to matter for the service check.

Thanks,
Trey
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: 3.4.0 New install/setup. Host Check freshness not worki

Post by lmiltchev »

Is host freshness enabled globally in the nagios.cfg file?

Code: Select all

check_host_freshness=1
Be sure to check out our Knowledgebase for helpful articles and solutions!
trey85stang
Posts: 10
Joined: Thu Apr 28, 2011 4:39 pm

Re: 3.4.0 New install/setup. Host Check freshness not worki

Post by trey85stang »

oh geez, That was it. I looked at that I swear. :)

Thanks for the help.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: 3.4.0 New install/setup. Host Check freshness not worki

Post by lmiltchev »

I'm glad I could help. :D
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked