Hostgroup subtraction?

Chris Pepper pepper at cbio.mskcc.org
Thu Jun 4 22:30:11 CEST 2009


Marc Powell wrote:
> On Jun 4, 2009, at 12:25 PM, Israel Brewster wrote:
> 
>> For this example, that works, and perhaps for the original poster  
>> it's good enough. I'm running into a very similar situation,  
>> however, where I have a list of hostgroups in a base definition, and  
>> I just want to remove one hostgroup from that list. I don't want to  
>> override the entire list, however, because it might change in the  
>> future, and then I'd have to change it in two spots. Plus, I want to  
>> keep the other hostgroups, I just don't want the one specific one.  
>> So is there a way to remove one (or more) item(s) from an inherited  
>> hostgroup list, without overriding the entire thing? Thanks.

	Right, I want to disable one or more hostgroups while preserving the 
inherited list.

> If the previously mentioned ! notation doesn't work then I don't  
> really have any suggestions. I haven't had a need to use that kind of  
> functionality before (I use dead simple inheritance) so I don't have  
> anything to fall back on. If it doesn't work, that'd be a nifty and  
> logical feature IMHO.

	I have requested '-' as an enhancement.

	I'm not sure how I could use "hostgroups actuallocation, 
!mainlocation", though. My thought was that I'd have a hostgroup 
'unlocated' with membership consisting of all hosts not in any of our 
location hostgroups. This would make it straightforward to find hosts 
without a specified location and add an appropriate location hostgroup 
to each.

Thanks,

Chris Pepper

-- 
Chris Pepper:                <http://cbio.mskcc.org/>
                              <http://www.extrapepperoni.com/>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list