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?



BR,
XL
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?
BR,
XL