Page 1 of 1

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

Posted: Tue May 08, 2012 2:22 pm
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

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

Posted: Tue May 08, 2012 2:55 pm
by lmiltchev
Is host freshness enabled globally in the nagios.cfg file?

Code: Select all

check_host_freshness=1

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

Posted: Tue May 08, 2012 2:58 pm
by trey85stang
oh geez, That was it. I looked at that I swear. :)

Thanks for the help.

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

Posted: Tue May 08, 2012 4:29 pm
by lmiltchev
I'm glad I could help. :D