[Nagios-devel] Inheritance

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Inheritance

Post by Guest »

------=_Part_48792_19519033.1168276133587
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hey guys,

A couple of days ago i posted a mail talking about a inheritance and also
described a idea. I havent had a reply, just wondering

1) was it a rubbish idea?
2) is this already being done?

Ive placed a copy of the old email below

"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"

Regards

Kashif

------=_Part_48792_19519033.1168276133587
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hey guys,A couple of days ago i posted a mail talking about a inheritance and also described a idea. I havent had a reply, just wondering 1) was it a rubbish idea?2) is this already being done?Ive placed a copy of the old email below
"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

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked