Bug or by design? services inheriting contacts from host

Matt Nelson matt at frozenatom.com
Mon Jul 13 15:25:46 CEST 2009


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090713/61ca3615/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