How to make 1 exception for 1 host when mapping services to hostgroups?

Jelle Smet nagios at smetj.net
Tue Sep 8 13:43:39 CEST 2009


> You can exclude a single host/service already included in a
> hostgroup/servicegroup with the bang (!) character.
> 
> i.e.:
> 
> define service {
>   host_name      !web1
>   hostgroup_name web_servers
> }
> 
> This will include all hosts in web_servers hostgroup except web1. I
> believe you can also exclude a hostgroup/servicegroup the same way, if
> you have overlapping hostgroups.

Hi Thomas, that was the missing link indeed.
It works as expected and fits in our current setup.

Thanks,

-- 
Jelle Smet
http://www.smetj.net

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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