R?f. : object inheritance p roblem
Irina Liakh
spellit at itl.net.ua
Tue Feb 25 16:06:55 CET 2003
On Tue, Feb 25, 2003 at 03:53:27PM +0100, marc.brun wrote:
> Marc BRUN at MAIF
> 25/02/2003 15:53
>
>
>
>
> To: spell at itl.ua @ INTERNET
> cc:
>
>
> Subject: R?f. : [Nagios-users] object inheritance problem
>
>
>
>
>
>
> Well, sorry I can't answer technically to your question...
>
> But I think that what you try to do is against the inheritance
> approach. The son has his father's properties *plus* some
> specificities. You do the contrary.
sorry, but I disagree.
As I understand the idea of object inheritance at all,
and nagios object inheritance in particular (this is
unambiguously described in Nagios documentation),
locally defined variables *override* values, defined in parent,
and *not* *append*.
So, I consider justly my wish to override previously defined
variable with an empty value.
>
> Anyway, give me your exemple, it could help.
Please.
define host{
name generic-host
parents xxx
register 0
}
define host{
use generic-host
host_name xxx
}
define host{
use generic-host
host_name aaa
}
I need to exclude parent "xxx" from definition of host xxx.
>
> Have fun.
> Marc
Thank you for help.
>
>
> I've encountered some problem with writing
> config files using object inheritance approach.
>
> The problem is:
> I have prepared some template object,
> and other object inherits the former one.
> In latter object, I need to redefine some variable to "empty" value
> while this variable is defined as some nonempty value in template.
>
> Simple putting variable name without value renders a parsing error.
>
> How can I resolve my problem by means of object inheritance approach,
> or is there any workaround if former not possible?
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
>
>
>
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list