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

The logrt go unsupported state when the log rotates

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.9
    • Fix Version/s: 2.0.12rc1, 2.2.3rc1, 2.3.0
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      Zabbix Agent (daemon) v2.0.9 (revision 39085)

      Description

      If during the intensive reading a log file is rotated, then item goes to unsupported state.

      Example, we have a rapidly growing log file zabbix_agentd.log1, after executing commands that simulate rotation:
      mv -f zabbix_agentd.log1 zabbix_agentd.log1.old; touch zabbix_agentd.log1
      or
      rm -f zabbix_agentd.log1; touch zabbix_agentd.log2
      item "logrt["/var/log/zabbix/zabbix_agentd.log[1-9]$","error",,,skip]" with a high probability will go into "Not supported" state with error:
      25754:20131106:133050.854 cannot process read entry '/var/log/zabbix/..'
      25754:20131106:133050.855 cannot stat '/var/log/zabbix/zabbix_agentd.log1': [2] No such file or directory

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oleg.ivanivskyi Oleg Ivanivskyi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: