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

Macros for SNMP agent credentials are not expanded when testing items

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 5.0.0
    • Frontend (F), Server (S)
    • None
    • Ubuntu 18.04.4, Net-SNMP 5.7.3, PHP 7.2.24

      Steps to reproduce:

      1. Configure a host to use a macro for its SNMP community, e.g. {$SNMP_COMMUNITY}.
      2. On the item configuration page, click Test.
      3. Click either the Get value button or the Get value and test button.
      4. You will receive an error message since the macros are not expanded.

      Result:

      For SNMPv1 and SNMPv2c, the error message is:

      Timeout while connecting to "address".

      For SNMPv3, the error message is:

      Cannot connect to "address": Unknown user name.

      Expected:

      I would expect this to successfully retrieve the value from the device.

      This does work correctly if you specify the SNMP credentials directly on the host object without using macros.

      I have captured traffic from the Zabbix server and verified that the SNMPv3 security name, for example, is an empty string.

            zalex_ua Oleksii Zagorskyi
            Vince Vince Valenti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: