Inheritance

Christoph Maser cmr at financial.com
Mon Feb 5 19:20:56 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Could we change that to read

hostgroups	+, linux-servers,web-servers


this +<string> looks a bit awkward to me. Also considering how you use
"!" as a unary operator +<string> makes people think the "+" is an
operator for the following string.

Chris
Ethan Galstad wrote:
> This is great idea.  I have personally run into a few situations where 
> this feature would be useful, so I've just posted a patch to CVS for 
> inclusion in Nagios 3. :-)
> 
> "Additive" string inheritance will work like this:
> 
> define host{
> 	name	template
> 	hostgroups	all-servers
> 	}
> 
> define host{
> 	name	linux1
> 	use	template
> 	hostgroups	+linux-servers,web-servers
> 	}
> 
> The resulting effective definition will then be:
> 
> define host{
> 	name	linux1
> 	hostgroups	all-servers,linux-servers,web-servers
> 	}
> 
> 
> Kashif Ali wrote:
>> I am not a coder, and to be honest, i appreciate all the work the 
>> developers have done. I just wanted to know if there was any one who 
>> thought this was a good idea, and maybe if it was already being done for 
>> future releases :). I did think it was a good idea, maybe there is 
>> better ways of doing what i wanted.
>>
>> Thanks anyway :)
>>
>> Kashif
>>
>> On 08/01/07, *Andreas Ericsson* <ae at op5.se <mailto:ae at op5.se>> wrote:
>>
>>     Kashif Ali wrote:
>>      > Hey guys,
>>      >
>>      > A couple of days ago i posted a mail talking about a inheritance
>>     and also
>>      > described a idea. I havent had a reply, just wondering
>>      >
>>      > 1) was it a rubbish idea?
>>
>>     Not rubbish as such, but I'm not interested in writing this up (or even
>>     using the feature), so I stayed silent. If you cook up the code and send
>>     it to Ethan he might accept it. I don't think anyone else feels
>>     strongly
>>     enough about this to write the code for it though.
>>
>>      > 2) is this already being done?
>>      >
>>
>>     If you're not writing the patch, I shouldn't think so.
>>
>>     --
>>     Andreas Ericsson                   andreas.ericsson at op5.se
>>     <mailto:andreas.ericsson at op5.se>
>>     OP5 AB                             www.op5.se <http://www.op5.se>
>>     Tel: +46 8-230225                  Fax: +46 8-230231
> 
> 
> Ethan Galstad,
> Nagios Developer
> ---
> Email: nagios at nagios.org
> Website: http://www.nagios.org
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFFx3WIsLjW0HYht7URApsoAJ9h1GT50GvwAP8hN6aAsqPDkW8TNgCgmbRZ
aZCXPRxhIXnzlNwTORTxCv0=
=WTPf
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Developers mailing list