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
check_host_freshness is not detecting the disconnected host
-
- Posts: 25
- Joined: Tue Feb 13, 2018 6:23 am
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_host_freshness is not detecting the disconnected h
you have only shared the templates, these setting could be overridden in the hosts/service templates.
You also need to set the following in the nagios.cfg
You also need to set the following in the nagios.cfg
Code: Select all
check_host_freshness=1
check_service_freshness=1