>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Could we change that to read
>
>hostgroups +, linux-servers,web-servers
>
>
>this + looks a bit awkward to me. Also considering how you use
>"!" as a unary operator + makes people think the "+" is an
>operator for the following string.
Disagreed. Your proposed syntax is more confusing. Your syntax makes
it look like "+" is itself a hostgroup (albeit with special meaning).
The original syntax is well known and understood. For example, Apache
configuration files use the "+" as proposed below.
I prefer Ethan's proposed syntax.
-- John
>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
>>> better ways of doing what i wanted.
>>>
>>> Thanks anyway
>>>
>>> Kashif
>>>
>>> On 08/01/07, *Andreas Ericsson* > 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 [email protected]
>>>
>>> OP5 AB www.op5.se
>>> Tel: +46 8-230225 Fax: +46 8-230231
>>
>>
>> Ethan Galstad,
>> Nagios Developer
>> ---
>> Email: [email protected]
>> 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 ... dat=121642
>> _______________________________________________
>> Nagios-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/lis ... gios-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 ... dat=121642
>_______________________________________________
>Nagios-devel mailing list
>[email protected]
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]