From kmckinnis@tivo.com Wed Jun 24 08:16:47 2026 From: kmckinnis@tivo.com To: xymon@xymon.com Subject: cont check regex problems Date: Tue, 26 Aug 2008 16:25:06 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4825307691793149822==" --===============4825307691793149822== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit I'm not clear what I'm doing wrong in my cont check in bb-hosts, and I was hoping someone could help me out. My regular expression works fine in perl: perl -e '$text = join "", <>; if ($text =~ /assetID="[0-9A-Fa-f]{8}"/) { print "OK\n"; } else { print "NotOK\n"; }' < /tmp/vodbrowser.php However, bb-hosts line fails on the regex check: 10.100.104.53 seachange-vod # testip cont=vod;http://mrteeny/vod/vodbrowser.php;assetID="[0-9A-Fa-f]{8}" It *is* a webpage I'm trying to match... so the page starts with: VOD Interface

Vod Interface

-----------------------------------
assetID="00080002"

 

 

However, I really only care if the assetID is being displayed.  Any
suggestions?

 

 

 

 

 

 

 

 

 


 


--===============4825307691793149822==--


From kmckinnis@tivo.com Wed Jun 24 08:16:47 2026
From: kmckinnis@tivo.com
To: xymon@xymon.com
Subject: [hobbit] cont check regex problems
Date: Tue, 26 Aug 2008 16:38:37 -0700
Message-ID: 
In-Reply-To: 
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8595100672919154538=="

--===============8595100672919154538==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Hmm. Hobbit seems to have not liked the digit range. 

Using assetID="[0-9abcdefABCDEF]{8}" is working. I'm not clear *why*
Hobbit didn't like my digit range when perl did, and I'm curious to
figure it out, but for now I'm happy that my check works. 

 

________________________________

From: Kimberly McKinnis [mailto:kmckinnis at tivo.com] 
Sent: Tuesday, August 26, 2008 4:25 PM
To: hobbit at hswn.dk
Subject: [hobbit] cont check regex problems

 

I'm not clear what I'm doing wrong in my cont check in bb-hosts, and I
was hoping someone could help me out. My regular expression works fine
in perl: perl -e '$text = join "", <>; if ($text =~
/assetID="[0-9A-Fa-f]{8}"/) { print "OK\n"; } else { print "NotOK\n"; }'
< /tmp/vodbrowser.php

 

However, bb-hosts line fails on the regex check: 10.100.104.53
seachange-vod   # testip
cont=vod;http://mrteeny/vod/vodbrowser.php;assetID="[0-9A-Fa-f]{8}"

 

It *is* a webpage I'm trying to match... so the page starts with:



VOD Interface


Vod Interface

-----------------------------------
assetID="00080002"

 

 

However, I really only care if the assetID is being displayed.  Any
suggestions?

 

 

 

 

 

 

 

 

 


 


--===============8595100672919154538==--


From sberkley@mcclatchyinteractive.com Wed Jun 24 08:16:47 2026
From: sberkley@mcclatchyinteractive.com
To: xymon@xymon.com
Subject: [hobbit] cont check regex problems
Date: Wed, 27 Aug 2008 10:06:52 -0400
Message-ID: <48B55F7C.2080400@mcclatchyinteractive.com>
In-Reply-To: 
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4909198755062767100=="

--===============4909198755062767100==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Kimberly McKinnis wrote:
> Hmm. Hobbit seems to have not liked the digit range.
>=20
> Using assetID=3D"[0-9abcdefABCDEF]{8}" is working. I=E2=80=99m not clear **=
why**=20
> Hobbit didn=E2=80=99t like my digit range when perl did, and I=E2=80=99m cu=
rious to=20
> figure it out, but for now I=E2=80=99m happy that my check works.
>=20
> =20

A handy tool for checking Perl-compatible regexes is pcretest, which is a mor=
e=20
direct way of checking since it uses libpcre like hobbit does.


--=20
S i m e o n  B e r k l e y

Systems Engineer
Mcclatchy Interactive


--===============4909198755062767100==--


From kmckinnis@tivo.com Wed Jun 24 08:16:48 2026
From: kmckinnis@tivo.com
To: xymon@xymon.com
Subject: [hobbit] cont check regex problems
Date: Wed, 27 Aug 2008 13:29:28 -0700
Message-ID: 
In-Reply-To: <48B55F7C.2080400@mcclatchyinteractive.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============5185091902293114415=="

--===============5185091902293114415==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Thank you much!

-----Original Message-----
From: Simeon Berkley [mailto:sberkley at mcclatchyinteractive.com] 
Sent: Wednesday, August 27, 2008 7:07 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] cont check regex problems

Kimberly McKinnis wrote:
> Hmm. Hobbit seems to have not liked the digit range.
> 
> Using assetID="[0-9abcdefABCDEF]{8}" is working. I'm not clear **why**

> Hobbit didn't like my digit range when perl did, and I'm curious to 
> figure it out, but for now I'm happy that my check works.
> 
>  

A handy tool for checking Perl-compatible regexes is pcretest, which is
a more 
direct way of checking since it uses libpcre like hobbit does.


-- 
S i m e o n  B e r k l e y

Systems Engineer
Mcclatchy Interactive

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk




--===============5185091902293114415==--


From marco.avvisano@regione.toscana.it Wed Jun 24 08:18:02 2026
From: marco.avvisano@regione.toscana.it
To: xymon@xymon.com
Subject: regex question
Date: Wed, 03 Sep 2008 09:13:33 +0200
Message-ID: <19f301c90d94$941ded80$2b01d59f@regione.toscana.it>
In-Reply-To: 
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6314483478933430286=="

--===============6314483478933430286==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

I need to check the log string "ERROR  |", but i
don't know the right way to use the character "|"
not as OR 
I know that not exits a escape character in hobbit regex.

Any suggestions,

Thanks


--===============6314483478933430286==--


From lars.ebeling@leopg9.no-ip.org Wed Jun 24 08:18:02 2026
From: lars.ebeling@leopg9.no-ip.org
To: xymon@xymon.com
Subject: [hobbit] regex question
Date: Wed, 03 Sep 2008 12:19:17 +0200
Message-ID: <003401c90dae$897ea9e0$0500a8c0@noip.org>
In-Reply-To: <19f301c90d94$941ded80$2b01d59f@regione.toscana.it>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8857055706961872856=="

--===============8857055706961872856==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Escape character is \

Lars

----- Original Message ----- 
From: "Marco Avvisano" 
To: 
Sent: Wednesday, September 03, 2008 9:13 AM
Subject: [hobbit] regex question


>I need to check the log string "ERROR  |", but i
> don't know the right way to use the character "|"
> not as OR 
> I know that not exits a escape character in hobbit regex.
> 
> Any suggestions,
> 
> Thanks
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 
>


--===============8857055706961872856==--


From marco.avvisano@regione.toscana.it Wed Jun 24 08:18:02 2026
From: marco.avvisano@regione.toscana.it
To: xymon@xymon.com
Subject: [hobbit] regex question
Date: Thu, 04 Sep 2008 09:15:37 +0200
Message-ID: <004a01c90e5e$086bd890$2b01d59f@regione.toscana.it>
In-Reply-To: <003401c90dae$897ea9e0$0500a8c0@noip.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0614863751913488761=="

--===============0614863751913488761==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit


I try to insert "\" in my hobbit-client.cfg, but not work

 LOG /mylog.log  %ERROR*\| COLOR=red

May be that i remember that Henrik say that no escape character are 
required?

Marco



----- Original Message ----- 
From: "Lars Ebeling" 
To: 
Sent: Wednesday, September 03, 2008 12:19 PM
Subject: Re: [hobbit] regex question


> Escape character is \
>
> Lars
>
> ----- Original Message ----- 
> From: "Marco Avvisano" 
> To: 
> Sent: Wednesday, September 03, 2008 9:13 AM
> Subject: [hobbit] regex question
>
>
>>I need to check the log string "ERROR  |", but i
>> don't know the right way to use the character "|"
>> not as OR I know that not exits a escape character in hobbit regex.
>>
>> Any suggestions,
>>
>> Thanks
>>
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe at hswn.dk
>>
>>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 



--===============0614863751913488761==--


From henrik@hswn.dk Wed Jun 24 08:18:07 2026
From: henrik@hswn.dk
To: xymon@xymon.com
Subject: [hobbit] regex question
Date: Tue, 30 Sep 2008 12:12:12 +0000
Message-ID: 
In-Reply-To: <004a01c90e5e$086bd890$2b01d59f@regione.toscana.it>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2890707743292050958=="

--===============2890707743292050958==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

In <004a01c90e5e$086bd890$2b01d59f at regione.toscana.it> "Marco Avvisano"  writes:

>I try to insert "\" in my hobbit-client.cfg, but not work

> LOG /mylog.log  %ERROR*\| COLOR=3Dred

Shouldn't that be ".*" instead of just "*" ?

  LOG /mylog.log  %ERROR.*\| COLOR=3Dred

I don't believe the backslash-escape is needed.


Henrik



--===============2890707743292050958==--