[hobbit] hobbit-alerts with RegEx

Henrik Stoerner henrik at hswn.dk
Wed May 4 10:27:46 CEST 2005


On Wed, May 04, 2005 at 09:55:15AM +0200, Thomas Ruecker wrote:
> Hi,
> I build following var in the alerts config:
> $HOST_SERVERS=%(server1.*).domain.com,%(server2.*).domain.com

Hobbit doesn't recognize multiple regex'es on one line, since that is
better handled by just or'ing all of the patterns together. So this
line really should be
  $HOST_SERVERS=%(server1.*).domain.com|(server2.*).domain.com

or perhaps a simpler way

  $HOST_SERVERS=%(server1|server2).*.domain.com


Henrik




More information about the Xymon mailing list