[hobbit] how to specify the same log for different servers [client-local.cfg and LOG in hobbit-clients.cfg]

Steve Anderson Steve.Anderson at bipsolutions.com
Tue Feb 12 18:20:42 CET 2008


Try 

LOG %/var/lib/app/host.* "ERROR" yellow

Iirc, this is using regular expression pattern matching, and a * means '0 or more of the preceding character'. So you need the . (any character) for it to extend.




-----Original Message-----
From: itsimonb at gmail.com [mailto:itsimonb at gmail.com] On Behalf Of Szymon Bakowski
Sent: 12 February 2008 17:14
To: hobbit at hswn.dk
Subject: [hobbit] how to specify the same log for different servers [client-local.cfg and LOG in hobbit-clients.cfg]

Hello to all,

A quick question:

I do have to servers, load balanced, generating two logs comming from
the same application. My goal is to be able to log error messages from
these two machines, having different log names but logs holding the
same content.

Log on the firs machine is in format:

host1.log

and log on the other machine is

host2.log

What I did is in client-local.cfg file I have defined new class as following:

log:/var/lib/app/host*.log:10240

and tried to use it within hobbit-clients.cfg by doing (I do remember
that we can not uses classes within this file, just bb-hosts):

HOST=%host..\.domain\.com
...
        LOG %/var/lib/app/host* "ERROR" yellow


But unfortunatelly it doesnt work :(

Is there any viable exit from this situation? Am I missing something
here or it is simply not possible to do it that way?

Kind regards

Szymon

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



______________________________________________        
This email has been scanned by Netintelligence        
http://www.netintelligence.com/email



BiP Solutions Limited is a company registered in Scotland with Company Number SC086146 and VAT number 38303966 and having its registered office at Park House, 300 Glasgow Road, Shawfield, Glasgow, G73 1SQ ****************************************************************************
This e-mail (and any attachment) is intended only for the attention of the addressee(s). Its unauthorised use, disclosure, storage or copying is not permitted. If you are not the intended recipient, please destroyall copies and inform the sender by return e-mail.
This e-mail (whether you are the sender or the recipient) may be monitored, recorded and retained by BiP Solutions Ltd.
E-mail monitoring/ blocking software may be used, and e-mail content may be read at any time. You have a responsibility to ensure laws are not broken when composing or forwarding e-mails and their contents.
****************************************************************************


More information about the Xymon mailing list