Xymon Mailing List Archive search

monitoring log files

3 messages in this thread

list Usa Ims · Wed, 3 Sep 2014 07:53:36 -0700 ·
Greetings, first of all, thank you for answering my questions.

I'm having an issue with xymon 4.3.7 on ubuntu 14.04 with monitoring log files -- it's not reporting to the xymon server -- I want  to report to the xymon server when the word 'Warning' appears in the log file.

I have a  hobbit client that is a MySQL server and the logs resides in /var/lib/mysql/error.log.

On the xymon server in /etc/xymon/client-local.cfg, I configured this:

[xxx.example.com]
log:/var/lib/mysql/error.log:10240
trigger Warning

On the xymon server in the /etc/xymon/localclient.cfg, this is configured

HOST=xxx.example.com
        LOG /var/lib/mysql/error.log Warning COLOR=red

What am I missing, thanks in advance.
list Usa Ims · Wed, 3 Sep 2014 09:59:26 -0700 ·
Yes, the hobbit user can open and read the log file -- I just verified.
On Wed, 9/3/14, Martin Lenko <user-024fe0c6d298@xymon.invalid> wrote:

 Subject: Re: [Xymon] monitoring log files
 To: "usa ims" <user-42bb6445007b@xymon.invalid>
 Date: Wednesday, September 3, 2014, 11:05 AM
 
 Hi,can hobbit/xymon user on your client
 machine read the mysql log?
 Martin
 
 On 3
 September 2014 15:53, usa ims via Xymon <xymon at xymon.com>
 wrote:
 
 
 Forwarded message ----------
 From: usa ims
 <user-42bb6445007b@xymon.invalid>
 To: xymon at xymon.com
 Cc: 
 Date: Wed, 3 Sep 2014
 07:53:36 -0700
 
 Subject: monitoring log files
▸ quoted from Usa Ims
 Greetings,
 first of all, thank you for answering my questions.
 
 
 I'm having an issue with xymon 4.3.7 on ubuntu 14.04
 with monitoring log files -- it's not reporting to the
 xymon server -- I want  to report to the xymon server when
 the word 'Warning' appears in the log file.
 
 
 I have a  hobbit client that is a MySQL server and the logs
 resides in /var/lib/mysql/error.log.
 
 
 On the xymon server in /etc/xymon/client-local.cfg, I
 configured this:
 
 
 [xxx.example.com]
 
 log:/var/lib/mysql/error.log:10240
 
 trigger Warning
 
 
 On the xymon server in the /etc/xymon/localclient.cfg, this
 is configured
 
 
 HOST=xxx.example.com
 
         LOG /var/lib/mysql/error.log Warning
 COLOR=red
 
 
 What am I missing, thanks in advance.
list Usa Ims · Wed, 3 Sep 2014 14:59:36 -0700 ·
This has been solved -- from reading the localclient.cfg it said:

" ************ IMPORTANT ***************
#             To monitor a logfile, you *MUST* configure both client-local.cfg
#             and analysis.cfg. If you configure only the client-local.cfg
#             file, the client will collect the log data and you can view it in
#             the "client data" display, but it will not affect the color of the
#             "msgs" status. On the other hand, if you configure only the
#             analysis.cfg file, then there will be no log data to inspect,
#             and you will not see any updates of the "msgs" status either."

Which fixed it. 

usaims
▸ quoted from Usa Ims

On Wed, 9/3/14, usa ims via Xymon <xymon at xymon.com> wrote:

 Subject: Re: [Xymon] monitoring log files

 To: "Martin Lenko" <user-024fe0c6d298@xymon.invalid>
 Cc: xymon at xymon.com
 Date: Wednesday, September 3, 2014, 12:59 PM
 
 -----Inline Attachment Follows-----