Hello,
I'm quite new to Zabbix, and I have run into som issues monitoring systems via snmp traps.
I have this trap:
This trap tels me that there is a problem a device called Device 1, and there are a few OID's that tell me about temperature, power etc.. All important stuff.
I have created an SNMPTrap item
And this item logs the trap in zabbix.
Next I am trying to make a trigger to alert me when the trap indicates a problem with the device.
The OID above tells me what the problem with the device is based on bitwise flags in the value. 0 = OK !0 = some bit flags are set
How can I create a trigger expression that pick the OID I want and evaluate it to raise a problem, here I need to do some bitwise operations to find out if a certain bit is set in the Int? Is this possible or am I handling the problem completely wrong. I can't preprocess the data and only pick the SNMPv2-SMI::enterprises.35642.1.2.0.0.1.0 = 10, because I need to "save" the information in the other OID's aswell, like the device name for instance.
I have been working on this for a few days now. I'm on 5.4 so the new expression syntax in triggers has limited the examples I can find on the topic.
I'm not sure how to continue forward.
I'm quite new to Zabbix, and I have run into som issues monitoring systems via snmp traps.
I have this trap:
Code:
20220207.085428 UDP: [127.0.0.1]:47048->[172.16.238.2]:1162 DISMAN-EVENT-MIB::sysUpTimeInstance = 315569 SNMPv2-MIB::snmpTrapOID.0 = SNMPv2-SMI::enterprises.35642.1.2.0.2 SNMPv2-MIB::sysName.0 = New system SNMPv2-SMI::enterprises.35642.1.2.2.1.1.6 = 146 SNMPv2-SMI::enterprises.35642.1.2.2.1.1.5 = 3700 SNMPv2-SMI::enterprises.35642.1.2.2.1.1.2 = "Device 1" SNMPv2-SMI::enterprises.35642.1.2.2.1.1.4 = -200 SNMPv2-SMI::enterprises.35642.1.2.0.0.1.0 = 10 SNMPv2-SMI::enterprises.35642.1.2.2.1.1.3 = 1260 SNMPv2-MIB::snmpTrapEnterprise.0 = SNMPv2-SMI::enterprises.35642
I have created an SNMPTrap item
Code:
snmptrap[SNMPv2-SMI::enterprises.35642.1.2.0.2]
Next I am trying to make a trigger to alert me when the trap indicates a problem with the device.
Code:
SNMPv2-SMI::enterprises.35642.1.2.0.0.1.0 = 10
How can I create a trigger expression that pick the OID I want and evaluate it to raise a problem, here I need to do some bitwise operations to find out if a certain bit is set in the Int? Is this possible or am I handling the problem completely wrong. I can't preprocess the data and only pick the SNMPv2-SMI::enterprises.35642.1.2.0.0.1.0 = 10, because I need to "save" the information in the other OID's aswell, like the device name for instance.
I have been working on this for a few days now. I'm on 5.4 so the new expression syntax in triggers has limited the examples I can find on the topic.
I'm not sure how to continue forward.
Comment