I created a workaround: a script plugin that calls a shell script which in turn calls a Python script that fetches and filters the html page. See the files below. Hopefully somebody knows how to perform the test via the HTTP service because this workaround is a bit kludgy.
htmlfilter.sh (to be called by the Hyperic script plugin)
--------------------------------------------------------------------------------------
#!/bin/bash
url=$1
filter=$2
status=`python /home/hyperic/script/htmlfilter.py $url $filter`
echo $status
htmlfilter.py (to be called by the htmlfilter shell script)
--------------------------------------------------------------------------------------
## Python 2.7
import sys,urllib
url = sys.argv[1]
searchstr = sys.argv[2]
response = urllib.urlopen(url)
html = str(response.read())
response.close()
if html.find(searchstr) == -1:
print("status=0")
else:
print("status=1")
htmlfilter-plugin.xml (Hyperic script plugin)
-----------------------------------------------------------------------
<plugin>
<service name="HtmlFilter">
<config>
<option name="script"
description="HTML page filter"
default="/home/hyperic/script/htmlfilter.sh"/>
<option name="url"
description="URL"/>
<option name="filter"
description="Filter"
default="ERROR"/>
</config>
<filter name="template-exec"
value="exec:file=%script%,args=%url% %filter%"/>
<metric name="HtmlFilter"
category="PERFORMANCE"
indicator="true"
interval="600000"
template="${template-exec}:status"/>
</service>
</plugin>