I only want alerts when the parent is up - We monitor 8.8.8.8 as the 'parent' to all hosts - This means if Verizon or COX fail we do not get a milion false alerts. COnfig sections below as examples.
Do I need some sort of parent on each service as well as host . I get 400 alerts if the internet goes down as we are monitoring all servers and services remotely and I only want alerts when a host or service is down AND the internet is up.
define contact {
name generic-contact
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,r,f,s
service_notification_options c,r,f,s
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
register 0
}
define service {
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
register 0
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
notification_interval 60
notification_period 24x7
notification_options w,c,r
first_notification_delay 2
}
define host {
name generic-host
register 0
max_check_attempts 10
check_command check-host-alive
notifications_enabled 1
notification_interval 0
notification_period 24x7
notification_options d,r
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
}
# host_id_3
define host {
host_name ADSL Router
alias ADII
address 1.2.3.4
contact_groups admins, P Technical Staff
icon_image nagiosimages/router.jpg
#notes_url /nagios2mwiki.php?host=$HOSTNAME
#action_url
https://www.example.com/na/host/edit/id/3
use generic-host
notification_interval 0
parents GOOGLE MOAP
}
# service_id_3_8
define service {
use generic-service
host_name ADSL Router
service_description ssh
display_name OpenSSH
check_command check_ssh
contact_groups admins, Proartemis Technical Staff
}