Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22382

Continuous use of vi results in incorrect calculation file sizes and mtime for the agent

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Workaround proposed
    • Icon: Trivial Trivial
    • None
    • 6.0.13
    • Agent (G)
    • None

      Steps to reproduce:

      1. create a logfile monitor item logrt,eg:logrt["/home/rkmoner/procmon//agent_procmon.log",\{$GD_REGEXP_PATTERN},\{$GD_CHARSET},1000,skip,,,mtime-noreread] ,interval 1m
      2. exec sql select * from item_rddata to check current logsize and mtime, eg:SELECT FROM_UNIXTIME(t.mtime, '%Y-%m-%d %H:%i:%S'),t.* FROM `item_rtdata` t  where t.itemid=45509
      3. vi agent_procmon.log keep it a few minutes,dont modify any things...
      4. check item_rddata ,mtime and last file already incorrect.

      Result:
       it lead to agent reread all log context and alert a lots alarm
      Expected:
      See screenshot....
      See attached patch file...

            zabbix.support Zabbix Support Team
            rochine123 romeo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: