[Xymon] xymonpsclient (application) logfile monitoring

Jeremy Laidman jeremy at laidman.org
Thu Aug 13 01:42:47 CEST 2020


Hi Christian

Sorry, I'm not sure I understand what you mean. "It seems to me that ..." -
does that mean: "From reading the docs, it seems to me that expected
behaviour is..." or: "After the configuration changes, it seems to me that
actual behaviour is...". It's my understanding that adding a LOG entry in
analysis.cfg is for determining which log lines trigger an alert condition
(eg red or yellow), but the rest of the log status page is the same - that
is, it contains all of the log lines from the logfile since the last client
status message (typically in the last 5 minutes).

The "pattern" is either a string or a regular expression. Your use of dots
in the pattern suggest that you're expecting it to be a regular expression.
However, you haven't prefixed it with "%" to tell Xymon this is the case.
You perhaps want:

LOG C:\Program Files\PATH-TO-LOGFILE\filename.log %
Unable.to.cancel.connection.to COLOR=RED

If the reason for the regexp is only to match spaces, because you don't
want the words in the pattern to be treated as different LOG keywords, then
you might find it easier to just enclose the pattern in quotes:

LOG C:\Program Files\PATH-TO-LOGFILE\filename.log "Unable to cancel
connection to" COLOR=RED

Cheers
Jeremy

On Wed, 12 Aug 2020 at 20:46, Becker Christian <
christian.becker at rhein-zeitung.net> wrote:

> Hello to the list,
>
>
>
>
>
> i need help in setting up logfile monitoring with xymonpsclient.
>
>
>
> My setup is a Windows 10 client pc, running xymonpsclient v2.42, reporting
> to a xymon server running xymon 4.3.30.
>
> In the client-local.cfg i have configured the logfile that i want to
> monitor, and an amount of time later, the logfile shows up in the msgs
> column.
>
> After that i configured analysis.cfg to look for a specific pattern in
> this logfile, it seems to me that only the appearance of this pattern is
> displayed in the msgs column, but nothing else from this logfile.
>
> In addition tot hat, the msgs column didn’t change to red state.
>
>
>
> Here’s the part of my client-local.cfg:
>
> [win10client1]
>
> log:C:\Program Files\PATH-TO-LOGFILE\filename.log:153600
>
>
>
> And here the part of my analysis.cfg:
>
> HOST=win10client1
>
> LOG C:\Program Files\PATH-TO-LOGFILE\filename.log
> Unable.to.cancel.connection.to COLOR=RED
>
>
>
> With this setup it seems to me that only lines containing this pattern
> Unable.to.cancel.connection.to are displayed in the msgs column of
> win10client1.
>
>
>
> Any idea what i’m doing wrong? Or do i understand any basics the wrong way?
>
>
>
>
>
> Regards
>
> Christian
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200813/3d007a79/attachment.htm>


More information about the Xymon mailing list