Xymon Mailing List Archive search

How to write regular expression in client-local.cfg

3 messages in this thread

list Samuel Cai · Mon, 21 Jul 2008 01:25:28 -0700 ·
Hi,

 
We want to monitor important error in a log file, but configuring
trigger part in client-local.cfg doesn't work.

For example, there are two types of errors we want to catch:
OutOfMemoryError and StackOverFlowError, then we configure:

[our server]

log: /var/log/server.log:10240

trigger Error

 
This doesn't work, Hobbit client still reports last 10240 data, if the
error is outside of that range, we just missed it.

 
I think this is due to wrongly write the trigger expression, could any
one help on this?

Btw, I sent similar question before, this one should be more clearer.

 
Thanks,

Samuel Cai
list Darren Cotton · Mon, 21 Jul 2008 13:25:36 +0200 ·
You need to configure the hobbit-clients.cfg on the server

Example
HOST=ourserver
        LOG %/var/log/server.log %(?-i)ERROR COLOR=red

Darren


                                                                                        "Samuel Cai"                                                               <Samuel.Cai at eheal                                                          th-china.com>                                              To                                        <user-ae9b8668bcde@xymon.invalid>                                 21/07/2008 10:30                                           cc                                                                                                                                               Subject              Please respond to         [hobbit] How to write regular                     user-ae9b8668bcde@xymon.invalid           expression in client-local.cfg                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
quoted from Samuel Cai


Hi,

We  want  to monitor important error in a log file, but configuring trigger
part in client-local.cfg doesn’t work.
For   example,   there   are   two  types  of  errors  we  want  to  catch:
OutOfMemoryError and StackOverFlowError, then we configure:
[our server]
log: /var/log/server.log:10240
trigger Error

This  doesn’t  work,  Hobbit  client  still reports last 10240 data, if the
error is outside of that range, we just missed it.

I  think this is due to wrongly write the trigger expression, could any one
help on this?
Btw, I sent similar question before, this one should be more clearer.

Thanks,
Samuel Cai

DISCLAIMER: This e-mail contains proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail.
list Samuel Cai · Mon, 21 Jul 2008 18:20:42 -0700 ·
Darren, yes, we configured, our problem is the critical error was not
sent to server, so server couldn't find it.
Sometimes the critical error was sent to server just because it's in
last 10240 bytes of log file, here 10240 is the max data we configured
client to send to server.

Thanks,
Samuel Cai

-----Original Message-----
From: user-029257304364@xymon.invalid
[mailto:user-029257304364@xymon.invalid] 
Sent: Monday, July 21, 2008 7:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] How to write regular expression in
client-local.cfg
quoted from Darren Cotton

You need to configure the hobbit-clients.cfg on the server

Example
HOST=ourserver
        LOG %/var/log/server.log %(?-i)ERROR COLOR=red

Darren


             "Samuel Cai"

             <Samuel.Cai at eheal

             th-china.com>
To 
                                       <user-ae9b8668bcde@xymon.invalid>

             21/07/2008 10:30
cc 
 

Subject 
             Please respond to         [hobbit] How to write regular

              user-ae9b8668bcde@xymon.invalid           expression in client-local.cfg

 
Hi,

We  want  to monitor important error in a log file, but configuring
trigger
part in client-local.cfg doesn't work.
For   example,   there   are   two  types  of  errors  we  want  to
catch:
OutOfMemoryError and StackOverFlowError, then we configure:
[our server]
log: /var/log/server.log:10240
trigger Error

This  doesn't  work,  Hobbit  client  still reports last 10240 data, if
the
error is outside of that range, we just missed it.

I  think this is due to wrongly write the trigger expression, could any
one
help on this?
Btw, I sent similar question before, this one should be more clearer.

Thanks,
Samuel Cai

DISCLAIMER: 
This e-mail contains proprietary information some or all of which may be
legally privileged. It is for the intended recipient only. If an
addressing or transmission error has misdirected this e-mail, please
notify the author by replying to this e-mail. If you are not the
intended recipient you must not use, disclose, distribute, copy, print,
or rely on this e-mail.