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

Log size for log[*] based items is not stored in database

    XMLWordPrintable

Details

    • Incident report
    • Resolution: Fixed
    • Major
    • 2.0.9rc1, 2.1.4
    • 2.0.7
    • Proxy (P)
    • Linux, CentOS-6.4, PostgreSQL 9.1.9, Apache HTTPD-2.2.15, PHP-5.3.3

    Description

      According to the documentation does:
      The server [...] keep a trace of the monitored log's size [...] stored in the Zabbix database [...]

      If I'm not wrong storing in database would never be happen for log[*] based items due to lack of mtime (code based on 2.0.8):

      1. sed -n '1324,1331p' ./src/libs/zbxdbcache/dbcache.c
        if (-1 == lastlogsize || -1 == mtime)
        continue;

      zbx_snprintf_alloc(&sql, &sql_alloc, &sql_offset,
      "update items set lastlogsize=" ZBX_FS_UI64 ",mtime=%d where itemid=" ZBX_FS_UI64 ";\n",
      lastlogsize,
      mtime,
      ids[i]);

      Attachments

        Activity

          People

            Unassigned Unassigned
            okkuv9xh Marc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: