Host versus Service Notification

I had configure notification to inform me that particular host is down in hosts.cfg
with following:

define host{
use generic-host
host_name XP-Pro
alias Hsiang’s PC
address 192.168.8.200
check_command check-host-alive
max_check_attempts 10
notification_interval 10
notification_period 24x7
notification_options d,r
contact_groups owner
}

In order to check whether that is there any packets lost to the Host i uses check_ping

define service{
use generic-service
host_name XP-Pro
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 20
notification_period 24x7
notification_options w,c,u,r
check_command check_ping!100.0,20%!500.0,60%
}

My questions are:

  1. i found that when the host is totally down,only the owner email will received notification. No notifications is received by admin. i presume that when the host down, only host notification will be generated, is this true?

  2. when there is a packet lost in the check_ping process, a log is found but no notification is received. i had enable notification_options w,c,u,r. why no notification when there is a ping warning?

thanks

  1. Yes, that’s right. The logic would be, if the host is down, then obviously, any service on that machine will also be down.
  2. My guess is that the service was in the “Soft” state. Yes, it did have packet loss, but since you have max_check_attempts 4, then it will retry that ping 4 more times. At that point, the state becomes “hard” and notifications are then sent.

bingo! Thanks jakkedup