Xymon Mailing List Archive search

hobbit-alerts with RegEx

list Henrik Størner
Wed, 4 May 2005 10:27:46 +0200
Message-Id: <user-fdaa2b298214@xymon.invalid>

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