[Nagios-devel] Inheritance
Posted: Fri Jan 05, 2007 4:25 pm
------=_Part_25260_15153819.1168043143979
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello All,
I was discussing a feature which would be cool to have for either
hostgroups.cfg or hosts.cfg. What i was thinking about was, allowing a user
to create a template which would then be used in a host/hostgroup, and then
a host/hostgroup could add to a value which it has already gained from the
template. Currently a value in the Father template can be overridden by a
child value, for example
Father {
hostgroup = group1
}
Child {
use Father
hostgroup = group 2
}
(Sorry i know this is correct syntax i just making up an example) Here the
child will only be a member of hostgroup "group2". What would be nice is if
you could do this
Child {
use Father
hostgroup = Father + group2
}
now the child host is part of group1 and group2. This allows a host to use a
single generic template and add extra needed only for itself rather creating
a how new template. The original overide rule applies where "+" isnt use to
add additonal value.
Another idea was to add groups within groups. The reason i would like to see
this feature is because currently we have five farms, (London - DL), (BL),
(New York -NY), Sydney (SY), and (PA). In each farm we have webservers, app
servers, db servers etc.... What i was trying to do was something like this.
ny-app={server list here}
ny-web={server list here}
.....
sy-app{server list here} and so... now i want another group called
all-app-servers={ny-app,sy=app......}
i also want like that for web
all-web-server{ny-web,sy-web...}
and i also want one called all servers in a particular Server Farm
ny-all-servers={ny-web,ny-app,ny-db}
and one final group
world-all-server{ny-all-servers,sy-all-server...}
You get the idea. With this i could do checks on groups based on World,
Farm, server-type, global-type-server etc.... currently i have to make
several groups add each server to each group manually, i thought idea about
adding values to templates would solve both problems.
I am currently using nagios 2.6 and i cant seem to find any other way around
this. If i am missing something please do let me know
Regards
Kashif
------=_Part_25260_15153819.1168043143979
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello All,I was discussing a feature which would be cool to
have for either hostgroups.cfg or hosts.cfg. What i was thinking about
was, allowing a user to create a template which would then be used in a
host/hostgroup, and then a host/hostgroup could add to a value which it
has already gained from the template. Currently a value in the Father
template can be overridden by a child value, for example
Father {hostgroup = group1}Child {use Fatherhostgroup = group 2}(Sorry
i know this is correct syntax i just making up an example) Here the
child will only be a member of hostgroup "group2". What would be nice
is if you could do this
Child {use Fatherhostgroup = Father + group2}now
the child host is part of group1 and group2. This allows a host to use
a single generic template and add extra needed only for itself rather
creating a how new template. The original overide rule applies where
"+" isnt use to add additonal value.
Another idea was to add groups within groups. The reason i
would like to see this feature is because currently we have five farms,
(London - DL), (BL), (New York -NY), Sydney (SY), and (PA). In each
farm we have webservers, app servers, db servers etc.... What i was
trying to do was something like this.
ny-app={server list here}ny-web={server list here}.....sy-app{server list here} and so... now i want another group calledall-app-servers={ny-app,sy=app......}i also want like that for web
all-web-server{ny-web,sy-web...}and i also want one called all servers in a particular Ser
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello All,
I was discussing a feature which would be cool to have for either
hostgroups.cfg or hosts.cfg. What i was thinking about was, allowing a user
to create a template which would then be used in a host/hostgroup, and then
a host/hostgroup could add to a value which it has already gained from the
template. Currently a value in the Father template can be overridden by a
child value, for example
Father {
hostgroup = group1
}
Child {
use Father
hostgroup = group 2
}
(Sorry i know this is correct syntax i just making up an example) Here the
child will only be a member of hostgroup "group2". What would be nice is if
you could do this
Child {
use Father
hostgroup = Father + group2
}
now the child host is part of group1 and group2. This allows a host to use a
single generic template and add extra needed only for itself rather creating
a how new template. The original overide rule applies where "+" isnt use to
add additonal value.
Another idea was to add groups within groups. The reason i would like to see
this feature is because currently we have five farms, (London - DL), (BL),
(New York -NY), Sydney (SY), and (PA). In each farm we have webservers, app
servers, db servers etc.... What i was trying to do was something like this.
ny-app={server list here}
ny-web={server list here}
.....
sy-app{server list here} and so... now i want another group called
all-app-servers={ny-app,sy=app......}
i also want like that for web
all-web-server{ny-web,sy-web...}
and i also want one called all servers in a particular Server Farm
ny-all-servers={ny-web,ny-app,ny-db}
and one final group
world-all-server{ny-all-servers,sy-all-server...}
You get the idea. With this i could do checks on groups based on World,
Farm, server-type, global-type-server etc.... currently i have to make
several groups add each server to each group manually, i thought idea about
adding values to templates would solve both problems.
I am currently using nagios 2.6 and i cant seem to find any other way around
this. If i am missing something please do let me know
Regards
Kashif
------=_Part_25260_15153819.1168043143979
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello All,I was discussing a feature which would be cool to
have for either hostgroups.cfg or hosts.cfg. What i was thinking about
was, allowing a user to create a template which would then be used in a
host/hostgroup, and then a host/hostgroup could add to a value which it
has already gained from the template. Currently a value in the Father
template can be overridden by a child value, for example
Father {hostgroup = group1}Child {use Fatherhostgroup = group 2}(Sorry
i know this is correct syntax i just making up an example) Here the
child will only be a member of hostgroup "group2". What would be nice
is if you could do this
Child {use Fatherhostgroup = Father + group2}now
the child host is part of group1 and group2. This allows a host to use
a single generic template and add extra needed only for itself rather
creating a how new template. The original overide rule applies where
"+" isnt use to add additonal value.
Another idea was to add groups within groups. The reason i
would like to see this feature is because currently we have five farms,
(London - DL), (BL), (New York -NY), Sydney (SY), and (PA). In each
farm we have webservers, app servers, db servers etc.... What i was
trying to do was something like this.
ny-app={server list here}ny-web={server list here}.....sy-app{server list here} and so... now i want another group calledall-app-servers={ny-app,sy=app......}i also want like that for web
all-web-server{ny-web,sy-web...}and i also want one called all servers in a particular Ser
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]