Re: [Nagios-devel] Multiple Inheritance Sources and variable
Posted: Wed Aug 22, 2007 9:29 am
------=_Part_2504_8835962.1187803764705
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
[...]
>
>
> The first option:
>
> define host {
> name windows-server
> hostgroups windows-server
> ...
> register 0
> }
>
> define host {
> use windows-server
> hostgroups +ABC-server
> ...
> }
Well, I have (and I need) an ABC-server template because I inherits other
values related to all the machines in the ABC-server hostgroup (such as
notes_url which points to a troubleshooting Wiki page related to ABC
project)
So now I do like this : I have a windows-server template, an ABC-server
template, and when I define a new host, I use both templates and I redefine
in the host the hostgroups value :
define host{
use windows-server,ABC-server
hostgroups +ABC-server
...
}
which means : use the hostgroups from windows-server template, ignore the
hostgroups from ABC-server template, add to the inherited hostgroups
"ABC-server"
So I have to add the ABC-server hostgroup ownership to each host belonging
to this hostgroup.
The second option:
>
> define host{
> name windows-server
> hostgroups windows-server
> ...
> register 0
> }
>
> define host {
> name ABC-server
> use windows-server
> hostgroups +ABC-server
> ...
> register 0
> }
>
> define host {
> use ABC-server
> ...
> }
This option is not good for me because ABC-server hostgroup may have
linux-server :
define host {
use windows-server,ABC-server
...
}
and
define host {
use linux-server,ABC-server
...
}
(and each hostgroup has a different set of services checked)
Thanks
--
L.B.
------=_Part_2504_8835962.1187803764705
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
[...]The first option:define host {name windows-serverhostgroups windows-server
...register 0}define host {use windows-serverhostgroups +ABC-server...}Well, I have (and I need) an ABC-server template because I inherits other values related to all the machines in the ABC-server hostgroup (such as notes_url which points to a troubleshooting Wiki page related to ABC project)
So now I do like this : I have a windows-server template, an ABC-server template, and when I define a new host, I use both templates and I redefine in the host the hostgroups value :define host{use windows-server,ABC-server
hostgroups +ABC-server...}which means : use the hostgroups from windows-server template, ignore the hostgroups from ABC-server template, add to the inherited hostgroups "ABC-server"
So I have to add the ABC-server hostgroup ownership to each host belonging to this hostgroup.
The second option:define host{name windows-serverhostgroups windows-server...register 0}define host {name ABC-serveruse windows-serverhostgroups +ABC-server...register 0
}define host {use ABC-server...}This option is not good for me because ABC-server hostgroup may have linux-server :define host {use windows-server,ABC-server
...}and define host {use linux-server,ABC-server...}(and each hostgroup has a different set of services checked)Thanks-- L.B.
------=_Part_2504_8835962.1187803764705--
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
[...]
>
>
> The first option:
>
> define host {
> name windows-server
> hostgroups windows-server
> ...
> register 0
> }
>
> define host {
> use windows-server
> hostgroups +ABC-server
> ...
> }
Well, I have (and I need) an ABC-server template because I inherits other
values related to all the machines in the ABC-server hostgroup (such as
notes_url which points to a troubleshooting Wiki page related to ABC
project)
So now I do like this : I have a windows-server template, an ABC-server
template, and when I define a new host, I use both templates and I redefine
in the host the hostgroups value :
define host{
use windows-server,ABC-server
hostgroups +ABC-server
...
}
which means : use the hostgroups from windows-server template, ignore the
hostgroups from ABC-server template, add to the inherited hostgroups
"ABC-server"
So I have to add the ABC-server hostgroup ownership to each host belonging
to this hostgroup.
The second option:
>
> define host{
> name windows-server
> hostgroups windows-server
> ...
> register 0
> }
>
> define host {
> name ABC-server
> use windows-server
> hostgroups +ABC-server
> ...
> register 0
> }
>
> define host {
> use ABC-server
> ...
> }
This option is not good for me because ABC-server hostgroup may have
linux-server :
define host {
use windows-server,ABC-server
...
}
and
define host {
use linux-server,ABC-server
...
}
(and each hostgroup has a different set of services checked)
Thanks
--
L.B.
------=_Part_2504_8835962.1187803764705
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
[...]The first option:define host {name windows-serverhostgroups windows-server
...register 0}define host {use windows-serverhostgroups +ABC-server...}Well, I have (and I need) an ABC-server template because I inherits other values related to all the machines in the ABC-server hostgroup (such as notes_url which points to a troubleshooting Wiki page related to ABC project)
So now I do like this : I have a windows-server template, an ABC-server template, and when I define a new host, I use both templates and I redefine in the host the hostgroups value :define host{use windows-server,ABC-server
hostgroups +ABC-server...}which means : use the hostgroups from windows-server template, ignore the hostgroups from ABC-server template, add to the inherited hostgroups "ABC-server"
So I have to add the ABC-server hostgroup ownership to each host belonging to this hostgroup.
The second option:define host{name windows-serverhostgroups windows-server...register 0}define host {name ABC-serveruse windows-serverhostgroups +ABC-server...register 0
}define host {use ABC-server...}This option is not good for me because ABC-server hostgroup may have linux-server :define host {use windows-server,ABC-server
...}and define host {use linux-server,ABC-server...}(and each hostgroup has a different set of services checked)Thanks-- L.B.
------=_Part_2504_8835962.1187803764705--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]