Passive host checks and Freshness

Hello,

I’m using passive checks for both services and hosts (because some of my hosts are not accessible from outside).
For services, it works perfectly. I set a freshness check on them every 15 minutes, so if Nagios has no results coming from a host for more than 15 minutes, the service turns to ‘Active’ and executes a command.

For hosts, this freshness check doesn’t work. Here is my host template definition:

define host {
name XXX
alias XXX
check_command check_host_alive
max_check_attempts 1
check_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
check_freshness 1
freshness_threshold 900
contact_groups Admin, Support
notification_interval 0
notification_period 24x7
notification_options d,u,r
notifications_enabled 0
register 0
}

Nagios is supposed to run the active check ‘check_host_alive’ if it gets no results from the passive checks after 15 minutes. But it doesn’t work, the status of my host remains UP with the last values sent by the passive host check. It never turns to Active.

Here is my template service definition, which works:

define service{
name passive_service
service_description passive_service
is_volatile 0
check_command no_report
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period 24x7
check_freshness 1
freshness_threshold 1800
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 0
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 0
contact_groups Admin
register 0
}

I’m using Nagios 2.9 with Oreon front-end.

Thanks for a ny help :slight_smile:

Thierry.