More config file madness add intersection to group operations
Ethan Galstad
nagios at nagios.org
Mon Feb 12 20:58:29 CET 2007
John Rouillard wrote:
> Hi all:
>
> Is 3.0 going to support the intersection operation between hostgroups?
> Currently you can do:
>
> web_servers,!boston
>
> to get web servers that are not in boston, but trying to get web
> servers that are in boston means adding every host to a site (e.g. boston,
> miami, london, orlando) and then:
>
> web_servers, !orlando, !miami, !london
>
> this is a maintenance nightmare when adding new sites and doesn't
> express what you want. (I chose a simple example here. In some of my
> configs I have 10 or 15 different hostgroups.)
>
> What I would like to see is support for the intersection operation.
> So web_servers in boston would be:
>
> web_servers, &boston
>
> and production tier 1 web servers in boston that are not dns servers
> would be
>
> web_servers, &boston, &production_tier_1, !dns_servers
>
> The addition of intersection provides all the standard operations of
> set theory: intersection, difference and union.
>
> -- rouilj
> John Rouillard
> ===========================================================================
> My employers don't acknowledge my existence much less my opinions.
>
I don't have any plans to add intersection support, as it would increase
the complexity of the code quite a bit. You can accomplish what you
need by using smaller hostgroups (that don't get registered) that
contain distinct sets of hosts and then use the new subgroup feature in
Nagios 3 to define larger hostgroups that contain members of the smaller
groups you defined.
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Developers
mailing list