Re: [Nagios-devel]
Posted: Sun Mar 02, 2008 7:40 pm
Hi,
Matthias Eble writes:
>
> with the latests cvs version this doesn't seem work.
> I looked at the source and the problem is that
> xodtemplate_clean_additive_strings() is called before
> xod_template_inherit_object_properties(). But the latter tries to do
> some additive inheritance, too. Unfortunately the + signs are gone then.
>
> My suggest would be to move xod_template_inherit_object_properties()
> before xodtemplate_clean_additive_strings() so that the inheritance work
> is done before the duplication tasks.
I'm facing the same issue on my side too.
I defined some hosts which I added to a hostgroup called "managed-services".
This same hostgroup has a "hostescalation" associated with it:
define hostescalation {
hostgroup_name managed-servers
first_notification 2
last_notification 0
notification_interval 10
contact_groups +admin-cell
}
Unfortunately, "contact_groups +admin-cell" won't make this particular
"hostescalation" heritates from the original "contact_groups" property
I defined in all original "host". Example:
define host {
[...cut...]
contact_groups host-contactgroup
hostgroups managed-servers
}
So basically, only "admin-cell" will receive the second notify,
not "host-contactgroup".
Any idea?
Regards,
--
Mathieu
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Matthias Eble writes:
>
> with the latests cvs version this doesn't seem work.
> I looked at the source and the problem is that
> xodtemplate_clean_additive_strings() is called before
> xod_template_inherit_object_properties(). But the latter tries to do
> some additive inheritance, too. Unfortunately the + signs are gone then.
>
> My suggest would be to move xod_template_inherit_object_properties()
> before xodtemplate_clean_additive_strings() so that the inheritance work
> is done before the duplication tasks.
I'm facing the same issue on my side too.
I defined some hosts which I added to a hostgroup called "managed-services".
This same hostgroup has a "hostescalation" associated with it:
define hostescalation {
hostgroup_name managed-servers
first_notification 2
last_notification 0
notification_interval 10
contact_groups +admin-cell
}
Unfortunately, "contact_groups +admin-cell" won't make this particular
"hostescalation" heritates from the original "contact_groups" property
I defined in all original "host". Example:
define host {
[...cut...]
contact_groups host-contactgroup
hostgroups managed-servers
}
So basically, only "admin-cell" will receive the second notify,
not "host-contactgroup".
Any idea?
Regards,
--
Mathieu
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]