So in client-local.cfg I can have:<br><br>[hostname1]<br>log:/var/log/myapp1.log:10240<br><br>[hostname2]<br>log:/var/log/myapp2.log:10240<br><br>I don't really need any alerts, I just wish to see the last few logs in the 'msgs' column of XYMON.<br>
We have logfiles that exist in some clients that don't exist in others.<br>I am hoping I can put specific hosts in the client-local.cfg ?<br>if not, how can I specify different logfile location on different clients?<br>
<br>tia.<br><br><br><br><div class="gmail_quote">On Thu, Dec 15, 2011 at 5:03 PM, Henrik Størner <span dir="ltr"><<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 15-12-2011 19:18, Tom S wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So I am using this method on client-local.cfg to show the logs:<br>
<br>
[linux]<br>
log:/var/log/myapp/my.app.log:<u></u>90240<br>
ignore MARK<br>
<br>
However even if i increase the MAXDATA (90240) it still only shows the<br>
last hour or so of logging. - under 'msgs' .<br>
</blockquote>
<br></div>
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.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I would like to to show more than that.   how is this possible?   eg.<br>
/var/log/myapp/my.app.log has logging from midnight, but only shows from<br>
the last 20 minutes.  I would like it to show at least 2 hours worth of<br>
logging.<br>
</blockquote>
<br></div>
Sorry, not possible. The "fetch the last 30 minutes of logfile data" is hard coded into the client utilities (the "logfetch" program).<br>
<br>
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.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, I would like to have different logs show for different client systems.<br>
<br>
I have tried this method:<br>
<a href="http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Other_Docs/FAQ#How_do_I_monitor_log_files_other_than_the_default_ones.3F" target="_blank">http://en.wikibooks.org/wiki/<u></u>System_Monitoring_with_Xymon/<u></u>Other_Docs/FAQ#How_do_I_<u></u>monitor_log_files_other_than_<u></u>the_default_ones.3F</a><br>

<br>
but I don't see anything with hohbbit-clients.cfg -<br>
</blockquote>
<br></div>
hobbit-clients.cfg was renamed to analysis.cfg in Xymon 4.3.0.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can I not use the HOST=<client hostname> in the client-local.cfg  ?<br>
</blockquote>
<br></div>
No, the hostname is the "section" marker. So it would be<br>
<br>
[client1]<br>
log:/var/log/myapp1.log:10240<br>
<br>
[client2]<br>
log:/opt/foo/logs/blabla.log:<u></u>50000<br>
<br>
<br>
Regards,<br>
Henrik<br>
______________________________<u></u>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/<u></u>mailman/listinfo/xymon</a><br>
</blockquote></div><br>