Hi!
We are moving to XI and in our Core 3 and 2 instances host checks only happen when there are no services on a host or all the services associated with a host are critical. The people who set that up are no longer with us but I would like to replicate it in XI. How can I do that?
Check host only when services are critical?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Check host only when services are critical?
Can you post host config files of both examples so we can determine what is going on.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Check host only when services are critical?
Sure.
Config of Host template from xi.
define host {
name host
check_command check-host-alive!!!!!!!!
max_check_attempts 3
check_interval 0
active_checks_enabled 0
check_period 24x7
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contacts setup
notification_interval 10
notification_period 24x7
notification_options d,u,r,
notifications_enabled 1
register 0
}
Config of Host template from Core 3.
define host {
name host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
check_command check-host-alive
check_interval 0
max_check_attempts 3
notification_interval 10
notification_period 24x7
notification_options d,u,r
contact_groups admins
register 0
}
Generic host template from Core 2.
define host {
name generic-host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
check_command check-host-alive
max_check_attempts 3
notification_interval 10
notification_period 24x7
notification_options d,u,r
contact_groups highwire-notify
register 0
}
Config of Host template from xi.
define host {
name host
check_command check-host-alive!!!!!!!!
max_check_attempts 3
check_interval 0
active_checks_enabled 0
check_period 24x7
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contacts setup
notification_interval 10
notification_period 24x7
notification_options d,u,r,
notifications_enabled 1
register 0
}
Config of Host template from Core 3.
define host {
name host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
check_command check-host-alive
check_interval 0
max_check_attempts 3
notification_interval 10
notification_period 24x7
notification_options d,u,r
contact_groups admins
register 0
}
Generic host template from Core 2.
define host {
name generic-host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
check_command check-host-alive
max_check_attempts 3
notification_interval 10
notification_period 24x7
notification_options d,u,r
contact_groups highwire-notify
register 0
}
Re: Check host only when services are critical?
Please post your check-host-alive command definition and attach the plugin if it differs from this:
Also, please post your nagios.cfg and a service definition so that we can see if you have event handlers setup on the old ones.
Thank you
Code: Select all
define command {
command_name check-host-alive
command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}Thank you