[hobbit] cont regex

White, Bruce bewhite at fellowes.com
Thu Nov 19 16:07:18 CET 2009


 I have dozens of scripts which run on my hobbit server (using its MIPs,
memory, etc.) which report on things all over the network and report
them as coming from the hosts being monitored.   Just make sure the
$MACHINE in the "bb" status command is the monitored host, not the
machine running the script.

    .....Bruce



 
 Bruce White
 Senior Enterprise Systems Engineer | Phone: 630-671-5169 | Fax: 630-893-1648 | bewhite at fellowes.com | http://www.fellowes.com/
 
 
 
Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc.
 
-----Original Message-----
From: M. Hansen [mailto:mh31337 at gmail.com] 
Sent: Thursday, November 19, 2009 8:55 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] cont regex

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!

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





More information about the Xymon mailing list