service notifications when host is down?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

service notifications when host is down?

Post by yunushaikh »

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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: service notifications when host is down?

Post by rkennedy »

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?

Post by yunushaikh »

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
}
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: service notifications when host is down?

Post by tgriep »

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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked