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

2012-10-26 Thread Nicolás Valera
Hi, can you tell me how to disabling object inheritance completely?

the services inherit the contact_groups defined in host

thanks in advance!

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 :-).
 



--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
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/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


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

2012-09-26 Thread Frost, Mark {BIS}
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.

Mark

-Original Message-
From: Schimpke, Dr. Thomas - bhn [mailto:schimpke.tho...@bhn-services.com] 
Sent: Wednesday, September 26, 2012 9:58 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Using contacts in host definition -- Bug ?

Hi,

I noticed some strange behaviour if I add a contact to a host definition
in Nagios 3.3.2 (or so) and 3.4.1. It seems, that if I add a contact to
a host, this contact will be automatically added to all services on this
host also - I've checked this using the objects cache file. This kind of
inheritance does not seem to happen with normal contact groups.

From the documentation:  This is a list of the short names of the
contacts that should be notified whenever there are problems (or
recoveries) with this host... 

One may read this like: ...the list of contacts is notified for each and
every problem (even in the services) associated with the host. 

But for the contact_groups: This is a list of the short names of the
contact groups that should be notified whenever there are problems (or
recoveries) with this host. 

And there this kind of inheritance does not take place. So at least, the
behaviour is inconsistent - but I suspect this is a bug. You may want to
have a phone call in the middle of the night, because your server went
downBut I think you don't want to have a call for *all* services on
the host...

Cheers,

Thomas




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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