Re: [Nagios-devel] Inheritance
Posted: Mon Feb 05, 2007 10:14 am
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* > 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
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
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
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]