FW: wild cards with exceptions?
Wheeler, JF (Jonathan)
J.F.Wheeler at rl.ac.uk
Tue May 8 17:28:13 CEST 2007
-----Original Message-----
From: nagios-users On Behalf Of dave stern - e-mail.pluribus.unum
Sent: 08 May 2007 16:12
> 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?
I have found that within the same service definition I can use both
hostgroup and host_name records, specifically I have definitions like:
define service {
service_description ....
hostgroup unix, ultrix, sco
host_name !host1, !host2, !host3, etc
Jonathan Wheeler
e-Science Centre
Rutherford Appleton Laboratory
-------------------------------------------------------------------------
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