Xymon Mailing List Archive search

cont check regex problems

list Kimberly McKinnis
Tue, 26 Aug 2008 16:25:06 -0700
Message-Id: <user-0fd93e55b4cd@xymon.invalid>

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:

<html>
<head>
<title>VOD Interface</title>
</head>
<body bgcolor=white>
<h3 align=center>Vod Interface</h3>
<pre>
assetID="00080002"

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