[Xymon] [PATCH] logfetch bug? (line is dropped)

t.fujiwara at sekisui.com t.fujiwara at sekisui.com
Tue Jun 14 12:23:56 CEST 2016


Hi,

I'm testing Xymon 4.3.27 to update from 4.3.18 for security issue,
and find that one line in /var/log/message is dropped shown as"msgs".
(Dropped line is seemed to be replaced with a string "<...CURRENT...>")

--- how to reproduce this problem ---

Write two messages from command prompt:

  $ logger
  test line 1
  test line 2
  ^D (EOF)

/var/log/messages contains:

  Jun 14 13:33:10 myhost some previous messages...
  Jun 14 18:40:56 myhost root: test line 1
  Jun 14 18:40:58 myhost root: test line 2

Xymon 4.3.27 shows following messages as "msgs":

  <...CURRENT...>
  Jun 14 18:40:58 smdtest root: test line 2

-----------------------------

I can set Xymon to ignore "<...CURRENT...>" using "analysis.cfg", but
lost message line will not come back until another line is added to
/var/log/messages.

Attached patch for client/logfetch.c works fine for me.
Please consider to apply it.

Regards,
Toshimitsu FUJIWARA

-------------------------------------------------
NTT DATA SEKISUI SYSTEMS CORPORATION (NDiS)
   Toshimitsu FUJIWARA t.fujiwara at sekisui.com
       http://www.ndis.co.jp/
-------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logfetch.diff.gz
Type: application/octet-stream
Size: 677 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160614/02071b9a/attachment.obj>


More information about the Xymon mailing list