Exclude from hostgroup_name in service def

Andreas Ericsson ae at op5.se
Sat Oct 2 00:10:44 CEST 2004


Tedman Eng wrote:
> What you describe is not currently available in 1.x Nagios, but I recall
> someone mentioned earlier that it will be (is) avaiable in 2.0a Nagios
> 

Yes, that's true. With Nagios 2.0 you can exclude a unit of the 
designated type by prefixing it with an exclamation point (!) in the 
comma-separated list.

> -----Original Message-----
> From: Phil Dibowitz [mailto:phil at usc.edu]
> Sent: Thursday, September 30, 2004 3:20 PM
> To: Nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Exclude from hostgroup_name in service def
> 
> 
> Hey folks,
> 
> I often define my services for hostgroups instead of hosts.
> 
> Is there a way to exclude a host or hostgroup though? For example, instead
> of:
> 
> define service{
> 	...
> 	hostgroup_name	unix
> 	...
> 	}
> 
> Do:
> 
> define service{
> 	...
> 	hostgroup_name	unix,-exceptionhosts
> 	...
> }
> 
> I looked through the docs but didn't see any such syntax.
> 
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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