Xymon Mailing List Archive search

[PATCH] logfetch bug? (line is dropped)

list Toshimitsu Fujiwara
Tue, 14 Jun 2016 19:23:56 +0900
Message-Id: <user-b6509eac298b@xymon.invalid>

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 user-a0c422b240b3@xymon.invalid
       http://www.ndis.co.jp/
Attachments (1)