Hello All,<br><br>I was discussing a feature whihc 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
<br><br>Father {<br><br>hostgroup = group1<br>}<br><br>Child {<br>use Father<br>hostgroup = group 2<br>}<br><br>(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
<br><br>Child {<br>use Father<br>hostgroup = Father + group2<br>}<br><br>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.
<br><br>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.
<br><br>ny-app={server list here}<br>ny-web={server list here}<br>.....<br>sy-app{server list here} and so... now i want another group called<br><br>all-app-servers={ny-app,sy=app......}<br><br>i also want like that for web
<br><br>all-web-server{ny-web,sy-web...}<br><br>and i also want one called all servers in a particular Server Farm<br><br>ny-all-servers={ny-web,ny-app,ny-db}<br><br>and one final group<br><br>world-all-server{ny-all-servers,sy-all-server...}
<br><br><br>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.
<br><br>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 :)<br><br>Regards<br><br>Kashif<br>