Passive checks but active checks still happen ?
Posted: Wed Aug 30, 2023 12:58 am
Afternoon,
So I have a service that is passive but appears to be triggering active checks every 10 minutes... My guess is it the issue is either inheritance or a lack of understanding on my side.
Version:Nagios core 4.4.6
Service from the objects.cache # with specific data replaced with <tags>
define service {
host_name <hostname>
service_description <service description>
check_period 24x7
check_command <command name>
contact_groups <contact group>
notification_period 24x7
initial_state o
importance 0
check_interval 10.000000
retry_interval 2.000000
max_check_attempts 1
is_volatile 0
parallelize_check 1
active_checks_enabled 0
passive_checks_enabled 1
obsess 1
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 0
flap_detection_options a
freshness_threshold 2400
check_freshness 1
notification_options r,w,u,c
notifications_enabled 1
notification_interval 1440.000000
first_notification_delay 0.000000
stalking_options n
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
}
Despite the "active_checks_enabled 0" and "passive_checks_enabled 1" it still runs the "check_command" every 10 minutes despite receiving a nsca message before that 10 minute check?
The service is connected to a host object and a service template.
Should the "check_interval" interval still be listed in the service object when active checks have been disabled ?
Any suggestion on how to troubleshoot my issue or theories as why I'm stuck ?
So I have a service that is passive but appears to be triggering active checks every 10 minutes... My guess is it the issue is either inheritance or a lack of understanding on my side.
Version:Nagios core 4.4.6
Service from the objects.cache # with specific data replaced with <tags>
define service {
host_name <hostname>
service_description <service description>
check_period 24x7
check_command <command name>
contact_groups <contact group>
notification_period 24x7
initial_state o
importance 0
check_interval 10.000000
retry_interval 2.000000
max_check_attempts 1
is_volatile 0
parallelize_check 1
active_checks_enabled 0
passive_checks_enabled 1
obsess 1
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 0
flap_detection_options a
freshness_threshold 2400
check_freshness 1
notification_options r,w,u,c
notifications_enabled 1
notification_interval 1440.000000
first_notification_delay 0.000000
stalking_options n
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
}
Despite the "active_checks_enabled 0" and "passive_checks_enabled 1" it still runs the "check_command" every 10 minutes despite receiving a nsca message before that 10 minute check?
The service is connected to a host object and a service template.
Should the "check_interval" interval still be listed in the service object when active checks have been disabled ?
Any suggestion on how to troubleshoot my issue or theories as why I'm stuck ?