Bug or by design? services inheriting contacts from host
Matt Nelson
matt at frozenatom.com
Mon Jul 13 19:22:10 CEST 2009
On Mon, Jul 13, 2009 at 7:25 AM, Matt Nelson <matt at frozenatom.com> wrote:
> Thanks Marc. I guess I need to re-factor my configuration. I appreciate
> you taking a minute to respond.
>
>
> On Fri, Jul 10, 2009 at 6:19 PM, Marc Powell <marc at ena.com> wrote:
>
>>
>> On Jul 10, 2009, at 4:10 PM, Matt Nelson wrote:
>>
>> > Service:
>> >
>> > define service{
>> > use noncritical-service
>> > host_name myHost
>> > service_description myMonitor
>> > check_command bla bla bla
>> > contact_groups +myGroup2
>> > }
>> >
>> >
>> > Host:
>> >
>> > define host {
>> > use default
>> > host_name myHost
>> > alias myHost
>> > address myHost.domain
>> > contact_groups myGroup1
>> > }
>> >
>> >
>> >
>> >
>> >
>> > The problem that I am seeing is that since we have a
>> > "contact_groups" defined in the service it is not taking the
>> > myGroup1 from the host and adding the myGroup2 to that. So the
>> > result is that I am getting notifications send to myGroup2, but not
>> > myGroup1 AND myGroup2 and I am expecting.
>>
>> My reading of the documentation is that the host->service inheritance
>> you are expecting only works if contact_groups isn't specified in the
>> service. Once you define it, in any way, the implied inheritance is no
>> longer valid.
>>
>> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html ->
>> Implied Inheritance
>>
>> --
>> Marc
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
Looking into this some more this is going to be a real PITA to migrate our
current configuration to handle this. If we migrate this will require us to
maintain contacts in the hosts and the services both. How do others handle
contacts? Do you maintain them on the Host and Service level?
Should I submit a bug? To re-explain the problem incase I was unclear
before:
We notify contact_group NOC for everything. For certain services we want to
notify ie: contact_group MARKETING, but also have it go to NOC. Rather then
letting NOC be the contact_group on the host, and then having the service
have the contact_group be "MARKETING, NOC" I would think that I should be
able to just put "+MARKETING", I don't think that this should be an issue.
Should this be something that I should report as a bug/feature?
This said, does anyone know how to get around this behavior?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090713/30aaff80/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list