Hello experts,
I have a ping service configured for my particular host. Host check command is ping too.
I always notice that when host goes down and service also, that time only host notification is trigereed and service notification does not trigger from nagios,
Is it possible to get service notification as well as host notification in this case,
Thanks a lot
service notifications when host is down?
Re: service notifications when host is down?
Can you post the host + service definitions for both of the objects for us to review?
Former Nagios Employee
-
yunushaikh
- Posts: 176
- Joined: Sat Jun 20, 2015 9:04 pm
Re: service notifications when host is down?
Host definition
define host {
host_name XXXX
use generic-host
alias sXXXXX
address XX.XX.XX.XX
hostgroups XXXX
check_command check-host-alive!!!!!!!!
initial_state o
max_check_attempts 3
check_interval 3
retry_interval 3
active_checks_enabled 1
check_period 24x7
event_handler_enabled 0
flap_detection_enabled 0
flap_detection_options o,d,
contacts a,b,c
notification_period 24x7
notification_options d,u,r,f,
notifications_enabled 1
register 1
}
Service definition
define service {
service_description XXX
hostgroup_name XXX
check_command check_xi_service_ping!3000!80!5000!90!!!!
initial_state o
max_check_attempts 3
check_interval 3
retry_interval 3
active_checks_enabled 1
check_period 24x7
event_handler nagios_otrs
event_handler_enabled 1
low_flap_threshold 50
high_flap_threshold 60
flap_detection_enabled 1
flap_detection_options w,c,
process_perf_data 1
notification_period 24x7
notification_options w,c,u,r,f,
notifications_enabled 1
contacts a,b,c
stalking_options w,c,
register 1
}
define host {
host_name XXXX
use generic-host
alias sXXXXX
address XX.XX.XX.XX
hostgroups XXXX
check_command check-host-alive!!!!!!!!
initial_state o
max_check_attempts 3
check_interval 3
retry_interval 3
active_checks_enabled 1
check_period 24x7
event_handler_enabled 0
flap_detection_enabled 0
flap_detection_options o,d,
contacts a,b,c
notification_period 24x7
notification_options d,u,r,f,
notifications_enabled 1
register 1
}
Service definition
define service {
service_description XXX
hostgroup_name XXX
check_command check_xi_service_ping!3000!80!5000!90!!!!
initial_state o
max_check_attempts 3
check_interval 3
retry_interval 3
active_checks_enabled 1
check_period 24x7
event_handler nagios_otrs
event_handler_enabled 1
low_flap_threshold 50
high_flap_threshold 60
flap_detection_enabled 1
flap_detection_options w,c,
process_perf_data 1
notification_period 24x7
notification_options w,c,u,r,f,
notifications_enabled 1
contacts a,b,c
stalking_options w,c,
register 1
}
Re: service notifications when host is down?
Take a look at this post for some tips on receiving service notifications when the host is down.
https://support.nagios.com/forum/viewto ... 9&start=10
https://support.nagios.com/forum/viewto ... 9&start=10
Be sure to check out our Knowledgebase for helpful articles and solutions!