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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.12rc1, 2.2.3rc1, 2.3.0
    • 2.0.9
    • Agent (G)
    • Zabbix Agent (daemon) v2.0.9 (revision 39085)

      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

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

              Created:
              Updated:
              Resolved: