Ad Widget

Collapse

switch port element label from snmp item prototype

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • znerol_1
    Junior Member
    • Jul 2023
    • 7

    #1

    switch port element label from snmp item prototype

    This should be really easy yet I struggle with this:

    i use Zabbix 6.4.12 and receive data via proxy with the template "Cisco IOS by SNMP"

    now I want to make a map with a trigger type element for each switch port, with label eg Port1 {?last(/{HOST.HOST}/net.if.status[ifOperStatus.1])} which works fine but I also want the {#IFNAME}({#IFALIAS} combo as a macro.

    thought I would simply add a new dependent item prototype in the template with key net.ifAlias[ifAlias.{#SNMPINDEX}] setting up preprocessing with 1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX} and then use {?last(/{HOST.HOST}/net.ifAlias[ifAlias.1])} in the element label.

    Unfortunatley it doesn't work, no value is created and the label shows 'UNKNOWN' i tried snmpget -v2c -c .... 192.168.95.3 1.3.6.1.2.1.31.1.1.1.18.1 on the proxy and it produces the desired result: iso.3.6.1.2.1.31.1.1.1.18.1 = STRING: "Mini Server 1 ETH2"

    Where am I going wrong?

    Click image for larger version

Name:	Screenshot 2024-04-11 at 02.51.15.png
Views:	333
Size:	24.3 KB
ID:	482255

    Click image for larger version

Name:	Screenshot 2024-04-11 at 03.06.20.png
Views:	210
Size:	49.2 KB
ID:	482257

    Click image for larger version

Name:	Screenshot 2024-04-11 at 02.51.47.png
Views:	198
Size:	20.6 KB
ID:	482256

    BR,
    XL
Working...