Xymon Mailing List Archive search

EXHOST regular expression syntax

list Benoit List
Tue, 22 Apr 2008 10:55:10 +0200
Message-Id: <user-dba2c2272ee3@xymon.invalid>

Regular expression syntax Hobbit


###################################
#        +      Add
#        -      Subtract
#        *      Multiply
#        /      Divide
#        %      Modulo
#        |      Bit-wise "or"
#        &      Bit-wise "and"
#        ||     Logical "or"
#        &&     Logical "and"
#        >      Greater than
#        <      Less than
#        >=     Greater than or equal
#        <=     Less than or equal
#        ==     Equal
###################################


http://hobbitmon.sourceforge.net/docs/man5/bbcombotest.cfg.5.html

2008/4/22, Johann Eggers <user-769b09132207@xymon.invalid>:
The rule that used to work is like this:
PROC	dsmc EXHOST=%.jotunn.rhi.hi.is

Now, yet another host is also exempt from the rule, so
I tested the following rules:
PROC	dsmc EXHOST=%.jotunn.rhi.hi.is EXHOST=bestla.rhi.hi.is
PROC	dsmc EXHOST=%.jotunn.rhi.hi.is,bestla.rhi.hi.is

Both rules give unexpected results. So I expect that the rule
should be written as a single regular expression, but I
do not know the syntax. Can anybody refer me to a description
of the syntax.
Hi,

Try using this:

PROC dsmc EXHOST=%(jotunn.rhi.hi.is|bestla.rhi.hi.is)

-Johann

-- 
                            .''`.
<mailinglist.benoit : :' : gmail.com>
                            `. `'
                              `-