[Nagios-devel] Multiple Inheritance Sources and variable
Posted: Wed Aug 22, 2007 5:36 am
------=_Part_11349_3282331.1187789782579
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,
I've read the end of this page
https://nagios.sgs.net/nagios/docs/obje ... tance.html about multiple
inheritance sources.
I'm going to explain what I want with an example :
I have a template for windows-servers with an hostgroups variable defined.
I have another template for ABC-servers with also an hostgroups variable
defined ( ABC is a project name).
I want my server to belong to both.
I defined a new host like this :
define host {
name windows-server
hostgroups windows-server
...
register 0
}
define host {
name ABC-server
hostgroups ABC-server
...
register 0
}
define host {
use windows-server,ABC-server
...
}
The problem, and according to the documentation, is that only the hostgroups
variable of the first template is kept.
Is it possible to add a concatenation feature to this inheritance, for
example by adding a + in front of the hostgroups name ?
If I define a template like this :
define host {
name ABC-server
hostgroups +ABC-server
...
register 0
}
I would like the hostgroups variable to be concatenated to the previous ones
inherited from other templates.
I thought it was the expected behavior but it doesn't work.
Thanks,
--
L.B.
------=_Part_11349_3282331.1187789782579
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,I've read the end of this page https://nagios.sgs.net/nagios/docs/obje ... tance.html
about multiple inheritance sources.
I'm going to explain what I want with an example :I have a template for windows-servers with an hostgroups variable defined.I have another template for ABC-servers with also an hostgroups variable defined ( ABC is a project name).
I want my server to belong to both.I defined a new host like this :define host {name windows-serverhostgroups windows-server...register 0}define host {
name ABC-server
hostgroups ABC-server
...
register 0
}define host {useĀ windows-server,ABC-server...}The problem, and according to the documentation, is that only the hostgroups variable of the first template is kept.Is it possible to add a concatenation feature to this inheritance, for example by adding a + in front of the hostgroups name ?
If I define a template like this :define host {
name ABC-server
hostgroups +ABC-server
...
register 0
}I would like the hostgroups variable to be concatenated to the previous ones inherited from other templates.I thought it was the expected behavior but it doesn't work.Thanks,-- L.B.
------=_Part_11349_3282331.1187789782579--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,
I've read the end of this page
https://nagios.sgs.net/nagios/docs/obje ... tance.html about multiple
inheritance sources.
I'm going to explain what I want with an example :
I have a template for windows-servers with an hostgroups variable defined.
I have another template for ABC-servers with also an hostgroups variable
defined ( ABC is a project name).
I want my server to belong to both.
I defined a new host like this :
define host {
name windows-server
hostgroups windows-server
...
register 0
}
define host {
name ABC-server
hostgroups ABC-server
...
register 0
}
define host {
use windows-server,ABC-server
...
}
The problem, and according to the documentation, is that only the hostgroups
variable of the first template is kept.
Is it possible to add a concatenation feature to this inheritance, for
example by adding a + in front of the hostgroups name ?
If I define a template like this :
define host {
name ABC-server
hostgroups +ABC-server
...
register 0
}
I would like the hostgroups variable to be concatenated to the previous ones
inherited from other templates.
I thought it was the expected behavior but it doesn't work.
Thanks,
--
L.B.
------=_Part_11349_3282331.1187789782579
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,I've read the end of this page https://nagios.sgs.net/nagios/docs/obje ... tance.html
about multiple inheritance sources.
I'm going to explain what I want with an example :I have a template for windows-servers with an hostgroups variable defined.I have another template for ABC-servers with also an hostgroups variable defined ( ABC is a project name).
I want my server to belong to both.I defined a new host like this :define host {name windows-serverhostgroups windows-server...register 0}define host {
name ABC-server
hostgroups ABC-server
...
register 0
}define host {useĀ windows-server,ABC-server...}The problem, and according to the documentation, is that only the hostgroups variable of the first template is kept.Is it possible to add a concatenation feature to this inheritance, for example by adding a + in front of the hostgroups name ?
If I define a template like this :define host {
name ABC-server
hostgroups +ABC-server
...
register 0
}I would like the hostgroups variable to be concatenated to the previous ones inherited from other templates.I thought it was the expected behavior but it doesn't work.Thanks,-- L.B.
------=_Part_11349_3282331.1187789782579--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]