Re: [Nagios-users] Using contacts in host definition -- Bug ?

2012-09-27 Thread Andreas Ericsson
On 09/26/2012 09:25 AM, Frost, Mark {BIS} wrote:
 I believe this is a feature introduced in 3.3 or thereabouts.  I've
 always found it very irritating and wish there was some way to turn
 off inheriting host contacts/contactgroups to services as it's never
 what I want.
 

It's a half misfeature. The intention was (and is) that services with no
contactgroups OR contacts should inherit the ones from the host, but it
was coded up so that if the service had contactgroups (but not contacts)
it would inherit contacts (but not contactgroups) from the host. The same
applied when the service had contacts but no contactgroups and the host
had contactgroups.

In 4.0 this is fixed so only services with neither contacts nor contact-
groups inherit them from the host.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Using contacts in host definition -- Bug ?

2012-09-27 Thread Frost, Mark {BIS}


 -Original Message-
 From: Andreas Ericsson [mailto:a...@op5.se] 
 Sent: Thursday, September 27, 2012 3:08 PM
 To: Nagios Users List
 Cc: Frost, Mark {BIS}
 Subject: Re: [Nagios-users] Using contacts in host definition -- Bug ?

 On 09/26/2012 09:25 AM, Frost, Mark {BIS} wrote:
 I believe this is a feature introduced in 3.3 or thereabouts.  I've
 always found it very irritating and wish there was some way to turn
 off inheriting host contacts/contactgroups to services as it's never
 what I want.
 

 It's a half misfeature. The intention was (and is) that services with no
 contactgroups OR contacts should inherit the ones from the host, but it
 was coded up so that if the service had contactgroups (but not contacts)
 it would inherit contacts (but not contactgroups) from the host. The same
 applied when the service had contacts but no contactgroups and the host
 had contactgroups.

 In 4.0 this is fixed so only services with neither contacts nor contact-
 groups inherit them from the host.

 -- 
 Andreas Ericsson   andreas.erics...@op5.se

I still see that as a misfeature.   I would rather have the preflight
check tell me there's an error because I forgot to define contacts
for the service than for it to assume that what I want is anything to
be inherited from a host definition.   I'd be OK if that were the default
behavior and was configurable, but I'd be the first to disable that
in nagios.cfg if it were a configurable preference.  Yeah, I know,
patches gleefully accepted :-).

Mark

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Using contacts in host definition -- Bug ?

2012-09-27 Thread Andreas Ericsson
On 09/27/2012 02:37 PM, Frost, Mark {BIS} wrote:
 
 
 -Original Message-
 From: Andreas Ericsson [mailto:a...@op5.se]
 Sent: Thursday, September 27, 2012 3:08 PM
 To: Nagios Users List
 Cc: Frost, Mark {BIS}
 Subject: Re: [Nagios-users] Using contacts in host definition -- Bug ?
 
 On 09/26/2012 09:25 AM, Frost, Mark {BIS} wrote:
 I believe this is a feature introduced in 3.3 or thereabouts.  I've
 always found it very irritating and wish there was some way to turn
 off inheriting host contacts/contactgroups to services as it's never
 what I want.

 
 It's a half misfeature. The intention was (and is) that services with no
 contactgroups OR contacts should inherit the ones from the host, but it
 was coded up so that if the service had contactgroups (but not contacts)
 it would inherit contacts (but not contactgroups) from the host. The same
 applied when the service had contacts but no contactgroups and the host
 had contactgroups.
 
 In 4.0 this is fixed so only services with neither contacts nor contact-
 groups inherit them from the host.
 
 -- 
 Andreas Ericsson   andreas.erics...@op5.se
 
 I still see that as a misfeature.   I would rather have the preflight
 check tell me there's an error because I forgot to define contacts
 for the service than for it to assume that what I want is anything to
 be inherited from a host definition.   I'd be OK if that were the default
 behavior and was configurable, but I'd be the first to disable that
 in nagios.cfg if it were a configurable preference.  Yeah, I know,
 patches gleefully accepted :-).
 

Well, disabling object inheritance completely is pretty simple. Doing
it on a per-variable basis is less so.

I'm on the fence with this. On the one hand I really don't care what
the default is. On the other hand I really don't want bugreports from
people who're relying on that feature and suddenly realize it's gone
missing.

As a workaround for your particular case, you could specify a catch-all
service template which other service templates reference, where you set
contactgroups and contacts to something that doesn't exist. That way
you'll get your error and I can dodge bugreports ;)

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Nagios-users mailing list
Nagios-users@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