Determining Status and Reachability of Network Hosts


#1

Hi All,

I’m trying to setup ‘parents’ relationships so that if a switch goes offline or a router goes offline all the device that’s attached to it will NOT get notifications.
As I read from the documentations all you need to do is put in the host configurations determining which is the parents.
However I’m still getting alerts for all the devices that’s attached to it.

If anyone could help or point me in the correct way of sorting out this issue.

Greatly appreciated.

Here are the sample of the host details.

define host{
host_name HNL-SWITCH3 ; The name we’re giving to this switch
alias HNL-SWITCH3 ; A longer name associated with the switch
parents localhost
address 192.168.10.2 ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
check_command check-host-alive
check_interval 1
retry_interval 1
max_check_attempts 1
check_period 24x7
contact_groups admins
notification_interval 0 ; The interval that it will notify the user 0 mean it only notice once
notification_period 24x7
notification_options d,r
}

define host{
use windows-server
host_name ILEASE3
alias ILEASE3
parents HNL-SWITCH3
address 192.168.10.3
check_command check-host-alive
check_interval 1
retry_interval 1
max_check_attempts 1
check_period 24x7
contact_groups admins
notification_interval 0 ; The interval that it will notify the user 0 mean it only notice once
notification_period 24x7
notification_options d,r
}

define host{
use windows-server
host_name FSLWEB01
alias FSLWEB01
parents HNL-SWITCH3
address 192.168.10.4
check_command check-host-alive
check_interval 1
retry_interval 1
max_check_attempts 1
check_period 24x7
contact_groups admins
notification_interval 0 ; The interval that it will notify the user 0 mean it only notice once
notification_period 24x7
notification_options d,r
}

Attached is an example image of what the nagios documentations have.
Just to make it abit more clearer if i didn’t phrase it properly.

Cheers
Huy


#2

anyone at all?
no-one have experience the issue that i’m having?


#3

it SHOULD work as expected by your configs.


#4

thanks luca but its not working at all
is there anywhere else in the configs that i should look at or is there any settings or anything that could affect the outcome of the result?

thanks


#5

what notification type are you getting? unreachable? if it’s that it’s expected and you can disable them…