How do I 'except' or 'negate' a regex host_name in a service definition?
jeff vier
boinger at tradingtechnologies.com
Thu Oct 27 18:49:13 CEST 2005
I want to split off a group of similarly named hosts to a separate
service from a more global check.
Here's the "normal" (working) regex line:
host_name ^chi-[a-z0-9]*-sim-[0-9]$
Now...how do I define "not those" in the associated global check?
I've tried the usual '!' before the host_name regex string.
I've tried !(regex).
I've tried dropping the ^$ and appending a !.
I can't use a negated regex, because then I'd be grabbing all sorts of
hosts I don't want in there (there are additional hostgroup_name
definitions in the service def.
Any ideas?
This is in Nagios 2.0b4, if that matters.
Thanks
--boinger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051027/3e27bf74/attachment.sig>
More information about the Users
mailing list