check_host_freshness is not detecting the disconnected host

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
charangandra
Posts: 25
Joined: Tue Feb 13, 2018 6:23 am

check_host_freshness is not detecting the disconnected host

Post by charangandra »

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
scottwilkerson
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

Post by scottwilkerson »

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

Code: Select all

check_host_freshness=1
check_service_freshness=1
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked