[SOLVED] Problem:Different Inheritance for Hosts vs Services
Posted: Tue Nov 12, 2013 2:12 pm
I have a weird problem with Nagios inheritance.
Here's my setup:
[alerts_for_production]
|--ernie_for_production_email
|--bert_for_production_email
|--[backup_alert_group]
. . . |--grover_for_backup_email (grover is a contact member of the backup_alert_group)
But here's what's happening (from observing objects.cache):
The hosts see the contactgroup as alerts_for_production, but the associated services see the contactgroup as backup_alert_group. I would have thought that both hosts and associated services would see both alerts_for_production and backup_alert_group as the contactgroups.
As a test, I decided to add in a single contact to the host (for example, ernie_for_production_email). That worked as expected - both host and service were assigned that contact.
Is this expected behavior or is my understanding incorrect?
I'd appreciate any insight or thoughts. Thanks!
Here's my setup:
- * Hosts are all in Hostgroups
* Contacts are all in Contactgroups
* Services are assigned to Hostgroups (not to Hosts)
* Contactgroups are assigned to Hosts
* Contacts and contactgroups are *not* assigned to services. I'm depending on implied inheritance per http://nagios.sourceforge.net/docs/3_0/ ... nheritance for the service to inherit its contactgroup(s) from the host.
[alerts_for_production]
|--ernie_for_production_email
|--bert_for_production_email
|--[backup_alert_group]
. . . |--grover_for_backup_email (grover is a contact member of the backup_alert_group)
But here's what's happening (from observing objects.cache):
The hosts see the contactgroup as alerts_for_production, but the associated services see the contactgroup as backup_alert_group. I would have thought that both hosts and associated services would see both alerts_for_production and backup_alert_group as the contactgroups.
As a test, I decided to add in a single contact to the host (for example, ernie_for_production_email). That worked as expected - both host and service were assigned that contact.
Is this expected behavior or is my understanding incorrect?
I'd appreciate any insight or thoughts. Thanks!