4 Discovery of SNMP OIDs

    Overview

    This discovery method of SNMP OIDs has been supported since Zabbix server/proxy 6.4.

    Item key

    Create an SNMP item, using the following item key in the SNMP OID field:

    This item will perform an snmpwalk for the OIDs specified in the parameters (1.3.6.1.2.1.2.2.1.2, 1.3.6.1.2.1.2.2.1.3), returning a concatenated list of values, e.g.:

    Dependent item

    Go to the discovery rules of your template/host. Click on Create discovery rule in the upper right corner of the screen.

    Fill in the required details in the Discovery rule tab:

    • Select the previously created SNMP walk item as the master item
    • Fill the name and key with meaningful values

    In the Preprocessing tab, select the SNMP walk to JSON preproccesing step.

    4 Discovery of SNMP OIDs - 图3

    In the field name specify a valid LLD macro name. Select the corresponding OID path to discover values from.

    This rule will discover entities and set:

    • {#IFTYPE} macros set to 24, , and 6.

    A built-in macro {#SNMPINDEX} containing the index of the discovered OIDs is applied to discovered entities. The discovered entities are grouped by {#SNMPINDEX} macro value: 1, 2 and 3:

    If an entity does not have the specified OID, then the corresponding macro will be omitted for this entity.

    Item prototypes

    Again, creating as many item prototypes as needed:

    4 Discovery of SNMP OIDs - 图5

    Discovered entities

    When server runs, it will create real items, triggers and graphs based on the values the SNMP discovery rule returns. In the host configuration they are prefixed with an orange link to a discovery rule they come from.

    4 Discovery of SNMP OIDs - 图7