[hobbit] monitoring text file

Shea, Graeme A Shea.Graeme.A at edumail.vic.gov.au
Thu Apr 23 00:58:22 CEST 2009


I posted a VB script to the shire that uses this idea to test the
running of DCDiags. If you cut down that script so that it only opens
your log file and looks for the word it will achieve what you want.
Don't know how to get the method below to work.

Hope this helps

Regards
Graeme

-----Original Message-----
From: Johan Booysen [mailto:johan at matrix-data.co.uk] 
Sent: Wednesday, 22 April 2009 2:25 AM
To: hobbit at hswn.dk
Subject: [hobbit] monitoring text file

I basically use hobbit 4.2.0 more or less as it comes out of the box and
that's been sufficient for us.  The downside is that I don't actually
know a lot about "advanced" features...

I want to monitor a plain text log file on one of our Windows servers
(already running BBWin and reporting just fine).  I've RTFM and came to
the conclusion that I need to do something like the following:

Specify the specific log file in client-local.cfg on the hobbit server:

[win32]
log:"d:\Log directory with spaces in name\log.txt":10240

Configure hobbit-clients.cfg so that the occurrence of the word "error"
causes the server's status to go red:

HOST=winservername
        LOG "d:\Log directory with spaces in name\log.txt" %error
color=red

Is this the correct way of doing this?  I guess not because it doesn't
appear to be evaluating that log file.  I've had a look at the logs but
see nothing to help.

Will appreciate advice on this.

Thanks.

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



Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.



More information about the Xymon mailing list