[hobbit] Suggestion for Defaults

Henrik Stoerner henrik at hswn.dk
Mon Feb 14 10:09:50 CET 2005


On Mon, Feb 14, 2005 at 12:08:21AM -0700, Charles Jones wrote:
> Henrik Stoerner wrote:
> >   $ADMINS="webmaster at foo.com engineering at foo.com"
> >
> >   HOST=*
> >       MAIL $ADMINS COLOR=red

> Wouldn't that be:
> 
> HOST=%.*
>      MAIL $ADMINS COLOR=red
> 
> The reason I ask is because I am using HOST=%.*, and it seems to be 
> working.  I thought it had to be a regex?

"HOST=*" is a special-case meaning "match anything". It was so simple
to implement, and obviously useful (I think), so I added that some
time ago.

Your regex will also work, and is the recommended way of doing
wildcard matches.


Henrik



More information about the Xymon mailing list