Xymon Mailing List Archive search

How to have XYMON show FULL logs of client server? also how to show different logs for different servers?

4 messages in this thread

list Tom S · Thu, 15 Dec 2011 13:18:18 -0500 ·
So I am using this method on client-local.cfg to show the logs:

[linux]
log:/var/log/myapp/my.app.log:90240
ignore MARK

However even if i increase the MAXDATA (90240) it still only shows the last
hour or so of logging. - under 'msgs' .
I would like to to show more than that.   how is this possible?   eg.
/var/log/myapp/my.app.log has logging from midnight, but only shows from
the last 20 minutes.  I would like it to show at least 2 hours worth of
logging.


Also, I would like to have different logs show for different client systems.

I have tried this method:
http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Other_Docs/FAQ#How_do_I_monitor_log_files_other_than_the_default_ones.3F

but I don't see anything with hohbbit-clients.cfg -
Can I not use the HOST=<client hostname> in the client-local.cfg  ?

tia
list Henrik Størner · Thu, 15 Dec 2011 23:03:59 +0100 ·
quoted from Tom S
On 15-12-2011 19:18, Tom S wrote:
So I am using this method on client-local.cfg to show the logs:

[linux]
log:/var/log/myapp/my.app.log:90240
ignore MARK

However even if i increase the MAXDATA (90240) it still only shows the
last hour or so of logging. - under 'msgs' .
That is by design. You normally don't want to transfer entire logfiles between servers every 5 minutes - not to mention that the logfile data is held in RAM on the Xymon server.
quoted from Tom S
I would like to to show more than that.   how is this possible?   eg.
/var/log/myapp/my.app.log has logging from midnight, but only shows from
the last 20 minutes.  I would like it to show at least 2 hours worth of
logging.
Sorry, not possible. The "fetch the last 30 minutes of logfile data" is hard coded into the client utilities (the "logfetch" program).

You can of course change the logfetch code running on the client ... that's what Open Source is about. There's a MAXMINUTES setting near the top which is set to "30", but there are a few places around the code where the number of logfile positions for the past N runs of the client assumes that MAXMINUTES isn't changed.
quoted from Tom S
Also, I would like to have different logs show for different client systems.

I have tried this method:
http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Other_Docs/FAQ#How_do_I_monitor_log_files_other_than_the_default_ones.3F

but I don't see anything with hohbbit-clients.cfg -
hobbit-clients.cfg was renamed to analysis.cfg in Xymon 4.3.0.
Can I not use the HOST=<client hostname> in the client-local.cfg  ?
No, the hostname is the "section" marker. So it would be

[client1]
log:/var/log/myapp1.log:10240

[client2]
log:/opt/foo/logs/blabla.log:50000


Regards,
Henrik
list Tom S · Thu, 15 Dec 2011 17:19:45 -0500 ·
So in client-local.cfg I can have:

[hostname1]
log:/var/log/myapp1.log:10240

[hostname2]
log:/var/log/myapp2.log:10240

I don't really need any alerts, I just wish to see the last few logs in the
'msgs' column of XYMON.
We have logfiles that exist in some clients that don't exist in others.
I am hoping I can put specific hosts in the client-local.cfg ?
if not, how can I specify different logfile location on different clients?

tia.
quoted from Henrik Størner


On Thu, Dec 15, 2011 at 5:03 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
On 15-12-2011 19:18, Tom S wrote:
So I am using this method on client-local.cfg to show the logs:

[linux]
log:/var/log/myapp/my.app.log:**90240
ignore MARK

However even if i increase the MAXDATA (90240) it still only shows the
last hour or so of logging. - under 'msgs' .
That is by design. You normally don't want to transfer entire logfiles
between servers every 5 minutes - not to mention that the logfile data is
held in RAM on the Xymon server.


 I would like to to show more than that.   how is this possible?   eg.
/var/log/myapp/my.app.log has logging from midnight, but only shows from
the last 20 minutes.  I would like it to show at least 2 hours worth of
logging.
Sorry, not possible. The "fetch the last 30 minutes of logfile data" is
hard coded into the client utilities (the "logfetch" program).

You can of course change the logfetch code running on the client ...
that's what Open Source is about. There's a MAXMINUTES setting near the top
which is set to "30", but there are a few places around the code where the
number of logfile positions for the past N runs of the client assumes that
MAXMINUTES isn't changed.


 Also, I would like to have different logs show for different client
systems.

I have tried this method:

http://en.wikibooks.org/wiki/**System_Monitoring_with_Xymon/**
Other_Docs/FAQ#How_do_I_**monitor_log_files_other_than_**
the_default_ones.3F<http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Other_Docs/FAQ#How_do_I_monitor_log_files_other_than_the_default_ones.3F>;
quoted from Henrik Størner

but I don't see anything with hohbbit-clients.cfg -
hobbit-clients.cfg was renamed to analysis.cfg in Xymon 4.3.0.


 Can I not use the HOST=<client hostname> in the client-local.cfg  ?
No, the hostname is the "section" marker. So it would be

[client1]
log:/var/log/myapp1.log:10240

[client2]
log:/opt/foo/logs/blabla.log:**50000


Regards,
Henrik
______________________________**

Xymon at xymon.com<
list Henrik Størner · Thu, 15 Dec 2011 23:22:29 +0100 ·
quoted from Tom S
On 15-12-2011 23:19, Tom S wrote:
So in client-local.cfg I can have:

[hostname1]
log:/var/log/myapp1.log:10240

[hostname2]
log:/var/log/myapp2.log:10240

I don't really need any alerts, I just wish to see the last few logs in
the 'msgs' column of XYMON.
We have logfiles that exist in some clients that don't exist in others.
I am hoping I can put specific hosts in the client-local.cfg ?
Yes, that is the idea behind having these entries "indexed" by the 
hostname. You can specify exactly where the logfile is, on a per-client 
basis.


Regards,
Henrik