[hobbit] cont regex

M. Hansen mh31337 at gmail.com
Thu Nov 19 15:54:32 CET 2009


On Thu, Nov 19, 2009 at 8:44 AM, Andreas Kunberger
<andreas.kunberger at itv-denkendorf.de> wrote:
> I'd write a small extension script,
> which first runs your web page through 'w3m -dump'
> and then scans in in the resulting text file for your printer lines
> to send am message to the xymon server

Good idea, but I assume I would have to run the extension script on a
box running hobbitclient? The print server is a small embedded device
(Netgear PS110), so there's no way I would be able run the extension
script locally on the print server. Is it possible to run the script
on another box and have the results show up as if they came from the
print server?

Are you sure it's not possible to just make two different cont tests?
My knowledge of regular expressions is quite limited, but I assumed it
would be trivial to match those strings.

Also, does the cont check parse the raw HTML data or just the text
stripped of HTML? I mean, do I have to write a regex like...

On-Line</td>\n\n</tr> (needs escape characters, I know)

...or...

On-Line\s*$

...in order to match the status of the second port?

Thanks!



More information about the Xymon mailing list