wild cards with exceptions?

Jeffrey Lensen jeffrey at hyves.nl
Wed May 9 16:39:06 CEST 2007


Hey Dave,

Thats the way I have things set up:

define service{
        use        generic-service
        hostgroup_name        *,!switch,!router
        service_description        SSH
        check_command        check_ssh
}

Works perfectly fine for me..

-----------------------------------
Jeffrey Lensen
System Administrator Hyves
hyves page: http://skyler.hyves.nl
mail/msn:   jeffrey at hyves.nl



dave stern - e-mail.pluribus.unum wrote:
> I'm trying to streamline my nagios config using wildcards.
> Unfortunately, not all services I wish to define via wildcard
> follows a clean set of rules. Is it possible to define a service
> with a host list of something like *,!linux1, !linux2
>
> I suspect the answer is no and what I'd need to do is use
> a combination of hostgroups and hosts eg
> define service {
> hostgroup  unix, ultrix, sco
> service_description ....
> }
> define service {
> host_name host1, host2, host3, host4
> ...
> }
>
> Anyone find a way around this?
> TIA
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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