Parent child alerts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jag7720
Posts: 14
Joined: Wed Sep 15, 2010 11:24 am

Parent child alerts

Post by jag7720 »

I'm trying to get rid of some "service" dependencies that are better served with a parent/child relationship....

I am making my server a child of my switch.

Having done this I'm still getting an alert on my Host Status page when I take my switch down,

The switch is in a "DOWN" state and the server is in an "UNKNOWN" state.

Shouldn't the server's alerts be suppressed so I only see the switch since it is the parent and it has the problem?

How do I make it so that if the switch does down, nothing gets reported on the server or any of the service that might be on the server?

Here is the cfg files for my server

hosts/testbranch-001.cfg

Code: Select all

define host {
                 host_name                      testbranch-001
                 alias                          testbranch-001
                 address                        10.0.70.180
                 check_command                   check-host-alive
                 parents                         Switch-TestBranch
                 max_check_attempts              5
                 check_interval                  5
                 active_checks_enabled           1
                 passive_checks_enabled          1
                 check_period                    24x7
                 obsess_over_host                1
                 check_freshness                 1
                 event_handler_enabled           1
                 process_perf_data               1
                 retain_status_information       1
                 retain_nonstatus_information    1
                 contact_groups                  novell-admins-Email
                 notification_interval           120
                 notification_period             24x7
                 notification_options            d,u,r
                 notifications_enabled           1
                 register                        1
}

services/testbranch-001.cfg

Code: Select all

define service {
                 host_name                       testbranch-001
                 service_description             PING
                 is_volatile                      0
                 check_command                   check_ping!200,20%!500,60%
                 max_check_attempts              5
                 normal_check_interval           5
                 retry_check_interval            5
                 passive_checks_enabled          1
                 check_period                    24x7
                 parallelize_check               1
                 obsess_over_service             1
                 check_freshness                 1
                 event_handler_enabled           1
                 flap_detection_enabled          1
                 process_perf_data               0
                 retain_status_information       1
                 retain_nonstatus_information    1
                 contact_groups                  novell-admins-Email
                 active_checks_enabled           0
                 notification_interval           120
                 notification_period             24x7
                 notification_options            w,c,u,r,f
                 notifications_enabled           1
                 register                        1
}
Locked