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

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

    XMLWordPrintable

Details

    • Incident report
    • Resolution: Duplicate
    • Minor
    • 1.8.5
    • 1.8.5rc1
    • None
    • None
    • Centos 5.4

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: