Ad Widget

Collapse

Key values

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MichaelF
    Member
    • Feb 2019
    • 66

    #1

    Key values

    Hello!
    While learning the snmp discovery I've seen (both in the book and on the site) only the examples with discovering network interfaces and creating the interface item prototypes (Discovery rule: Key: snmp.interface.discovery and the item prototype: ifInOctets[{#IFDESCR}] / OID:IF-MIB::ifInOctets.{#SNMPINDEX}). But many Zabbix templates contain discovery rules for many other hardware: fans, psu etc, for example, the discovery rule - fan.discovery, psu.discovery, item prototypes: sensor.fan.status[swFanStatus.{#SNMPINDEX}], sensor.psu.status[swPowerStatus.{#SNMPINDEX}].

    The question: how can I know which keys may be used in the discovery rules and the item prototypes?

    Thank you in advance,
    Michael
  • Answer selected by MichaelF at 16-02-2026, 17:26.
    1berto
    Senior Member
    • Sep 2018
    • 182

    I don't know if i understood you ...
    But have you checked the Discovery item on your template?

    Comment

    • 1berto
      Senior Member
      • Sep 2018
      • 182

      #2
      I don't know if i understood you ...
      But have you checked the Discovery item on your template?

      Comment

      • MichaelF
        Member
        • Feb 2019
        • 66

        #3
        Sory for the delay...
        Thank you 1berto!

        Comment

        • guntis_liepins
          Junior Member
          • Oct 2025
          • 29

          #4
          If we are talking about low level discovery - all discovery rules supported by zabbix agent are documented under https://www.zabbix.com/documentation...s/zabbix_agent.
          Items used as for discovery are named *.discovery. Usually they receive JSON from agent.
          You can check what these rules return by using zabbix agent
          Code:
          # zabbix_agent2 -t net.if.discovery
          net.if.discovery [s|[{"{#IFNAME}":"vetha0c08ca"},{"{#IFNAME}":"br-a3da5d0f6a8b"},{"{#IFNAME}":"veth0f4c96f"},{"{#IFN AME}":"docker0"},{"{#IFNAME}":"br-46138826b3d4"},{"{#IFNAME}":"br-b974bccd28be"},{"{#IFNAME}":"br-f0b94bc9fa89"},{"{#IFNAME}":"veth26dc8ab"},{"{#IFN AME}":"vethe69e59f"},{"{#IFNAME}":"br-cc0c3782c7bb"},{"{#IFNAME}":"br-74cd60776f6c"},{"{#IFNAME}":"eth0"},{"{#IFNAME}":" veth2bd39d6"},{"{#IFNAME}":"br-3131fe4ee93f"},{"{#IFNAME}":"vetheb613c6"},{"{#IFN AME}":"vethe05699a"},{"{#IFNAME}":"vethebe9c47"},{ "{#IFNAME}":"vetha32f860"},{"{#IFNAME}":"lo"}]]
          Some templates receive discovery via API calls - these are device specific.
          And you can create your own completely discovery rules as well.

          Comment

          Working...