SNMP Dynamic index does not support variable lengh indexes. It assumes indexes are integers.

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Minor
    • 1.8.5
    • Affects Version/s: 1.8.5rc1
    • Component/s: None
    • None
    • Environment:
      Centos 5.4

      Zabbix assumes that when you use a dynamic index, it will be an integer value. In some cases, enterprise MIBs contain OIDs with variable length indexes. Zabbix treats the last byte of the variable length index as the internal index. Here is the section of code that looks like it might be causing the problem

      In src/zabbix_server/poller/checks_snmp.c

      — around Line 433 —
      if (0 == strcmp(value, strval))

      { *idx = vars->name[vars->name_length - 1]; zabbix_log(LOG_LEVEL_DEBUG, "FOUND: Index is %d", *idx); ret = SUCCEED; running = 0; }

      ------------------------------

      It seems like the various index caching mechanisms will also need to be updated to support variable length indexes.

            Assignee:
            Unassigned
            Reporter:
            Amit Aggarwal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: