Re: [Nagios-devel] More config file madness add intersection to

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

Re: [Nagios-devel] More config file madness add intersection to

Post by Guest »

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: [email protected]
Website: http://www.nagios.org





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