I'm using the following command to generate an snmp trap: snmptrap -v 1 -c public 127.0.0.1 '.1.3.6.1.6.3.1.1.5.4' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.4 s "eth0"
I have an SNMP Trap Item created with the key: "snmptrap[]". Its type is 'Text' and it's a template Item. The template is associated with a host and when I generate the trap, the result shows up in the Host's data. So far, so good.
Next, I create a dependent Item within the same Template, using the key : "snmptrap[IF-MIB::linkUp]". It's type is also 'Text' and it has the above Item set as its Master. There are no pre-processing rules involved. This dependent Item never generates any data. What might I be doing wrong?
For reference, here is what the full trap looks like:
20230524.160752 ZBXTRAP 172.16.238.1
DISMAN-EVENT-MIB::sysUpTimeInstance = 55
SNMPv2-MIB::snmpTrapOID.0 = IF-MIB::linkUp.0.33
IF-MIB::linkUp = "eth0"
SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 = "public"
SNMPv2-MIB::snmpTrapEnterprise.0 = IF-MIB::linkUp
I have an SNMP Trap Item created with the key: "snmptrap[]". Its type is 'Text' and it's a template Item. The template is associated with a host and when I generate the trap, the result shows up in the Host's data. So far, so good.
Next, I create a dependent Item within the same Template, using the key : "snmptrap[IF-MIB::linkUp]". It's type is also 'Text' and it has the above Item set as its Master. There are no pre-processing rules involved. This dependent Item never generates any data. What might I be doing wrong?
For reference, here is what the full trap looks like:
20230524.160752 ZBXTRAP 172.16.238.1
DISMAN-EVENT-MIB::sysUpTimeInstance = 55
SNMPv2-MIB::snmpTrapOID.0 = IF-MIB::linkUp.0.33
IF-MIB::linkUp = "eth0"
SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 = "public"
SNMPv2-MIB::snmpTrapEnterprise.0 = IF-MIB::linkUp
Comment