[Xymon] alert configuration wildcard HOST
Bakkies Gatvol
bakgat8 at hotmail.com
Wed Jul 27 19:14:40 CEST 2016
Thanks!!! john.thurston
what I really really wanted t=test d=dev p=prod etc
*** Match with 'HOST=%^usphl0(p|d|t)sas\w+ SERVICE=disk_app' ***
> To: xymon at xymon.com
> From: john.thurston at alaska.gov
> Date: Wed, 27 Jul 2016 09:00:47 -0800
> Subject: Re: [Xymon] alert configuration wildcard HOST
>
> On 7/27/2016 8:38 AM, Bakkies Gatvol wrote:
> > This works
> >
> >
> > HOST=%_ip_printer SERVICE=conn
> >
> > matches any host ending in %_ip_printer
>
> No, the percent character is not a wildcard. It indicates that what
> follows is a regular expression. Yours matches any host _containing_
> "_ip_printer"
>
> http://perldoc.perl.org/5.8.8/perlre.html
>
> > what I want to match now
> >
> > usphl0tsasdbv0
> > usphl0tsasvav1
>
> HOST=%foo.
>
> Would match any host containing "foo" followed by any other character.
> That gets close to what you want in the fewest characters. But it will
> match "food" just as well as "shesafool" or "ofoo8".
>
> HOST=%^foo.
>
> requires that the host name begin with "foo" and is followed by any
> character. This would match "food", and "foo8".
>
> host=%^foo\d
>
> requires the hostname begins with "foo" and is followed by a digit.
>
>
> --
> Do things because you should, not just because you can.
>
> John Thurston 907-465-8591
> John.Thurston at alaska.gov
> Enterprise Technology Services
> Department of Administration
> State of Alaska
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160727/265379b9/attachment.html>
More information about the Xymon
mailing list