[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] EXHOST regular expression syntax
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] EXHOST regular expression syntax
- From: "Johann Eggers" <Johann.Eggers (at) teleatlas.com>
- Date: Tue, 22 Apr 2008 11:01:48 +0200
- References: <1208852100.5678.59.camel (at) ripley.rhi.hi.is> <8289D4DDD352DF45B8DABD7D5852A5900922E4D3 (at) EUSRV-EXC1.eu.ta.global> <9482e050804220155t744b965ds4f8be7cfd86487f7 (at) mail.gmail.com>
- Thread-index: AcikVrab8J5UKUgMRpGlILTN0KnsSQAAC2XA
- Thread-topic: [hobbit] EXHOST regular expression syntax
Sorry,
But I don't know what the bbcombotest.cfg operators have to do with the
regular expressions hobbit uses in hobbit-clients.cfg...
I use the example I posted in my hobbit-clients.cfg to exclude some
specific hosts from a common rule; and it's working.
-Johann
> 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 <Johann.Eggers (at) teleatlas.com>:
> > > 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
> >
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe (at) hswn.dk
> >
> >
> >
>
>
> --
> .''`.
> <mailinglist.benoit : :' : gmail.com>
> `. `'
> `-
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>