check_host_freshness is not detecting the disconnected host
Posted: Fri Jun 22, 2018 7:23 am
Hi,
I am running NCPA passive checks to get the status of my remote hosts and services. However I've shutdown one of my remote host and expecting Nagios core to force the active checks on this particular remote host after the host_freshness_check_interval threshold. But it's not forcing the active checks and in Nagios it is still showing as UP instead of DOWN.
Host and Service Definition as below.
define host {
use generic-host
name passive_host
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
register 0
check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 1
freshness_threshold 360
contact_groups admins,view_only
check_command check-host-alive
notification_interval 60
notification_period 24x7
notification_options d,u,r
}
define service {
use generic-service
name passive_service
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
register 0
check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 1
freshness_threshold 360
contact_groups admins,view_only
check_command check_dummy!0
notification_interval 60
notification_period 24x7
notification_options w,u,c,r
}
Am I doing anything wrong here?
Thanks,
Chara
I am running NCPA passive checks to get the status of my remote hosts and services. However I've shutdown one of my remote host and expecting Nagios core to force the active checks on this particular remote host after the host_freshness_check_interval threshold. But it's not forcing the active checks and in Nagios it is still showing as UP instead of DOWN.
Host and Service Definition as below.
define host {
use generic-host
name passive_host
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
register 0
check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 1
freshness_threshold 360
contact_groups admins,view_only
check_command check-host-alive
notification_interval 60
notification_period 24x7
notification_options d,u,r
}
define service {
use generic-service
name passive_service
active_checks_enabled 0
passive_checks_enabled 1
flap_detection_enabled 0
register 0
check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 1
freshness_threshold 360
contact_groups admins,view_only
check_command check_dummy!0
notification_interval 60
notification_period 24x7
notification_options w,u,c,r
}
Am I doing anything wrong here?
Thanks,
Chara