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

Zabbix agent2 continues to write to the same log file, if it was moved

    XMLWordPrintable

    Details

    • Team:
      Team INT
    • Sprint:
      Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021)
    • Story Points:
      0.5

      Description

      Zabbix agent2 writes to log file /var/log/zabbix/zabbix_agent2.log

      Execute command:

      mv /var/log/zabbix/zabbix_agent2.log /var/log/zabbix/zabbix_agent2.log.old
      

      The agent2 keeps writing into zabbix_agent2.log.old.
      Same thing happens when logrotate moves the file - the agent2 keeps writing to the old file until a restart.

      Additionally, it seems that if the file is removed, Zabbix agent2 just stops logging at all, but keeps working.

        Attachments

          Activity

            People

            Assignee:
            esneiders Eriks Sneiders
            Reporter:
            zux Edgars Melveris
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: