Hi,
I would like to know if this is possible. I have SNMP Traps going in Zabbix 2.2.2. There is a device that is used as a management system for multiple other devices. It pushes traps for the devices it manages with status changes, problems, etc....
I would like to use the traps from the management system instead of setting up each of the slave devices separately.
Since the Device Manager is sending traps under its hostname I would like to know if it is possible to extract the Device Name from the trap and have it show up in the Trigger Name with some Macro or Variable. This is a sample of the trap format I receive. In this example I trigger on the string "IP Input:". I would like my trigger to also show the Value "san-prod-enc-102" in the Trigger Name visible in the Monitoring > Triggers page.
Current Trigger Expression: ({TRIGGER.VALUE}=1&{Template SNMP Traps - MEXL_HMS:snmptrap["IP Input:"].str(signal loss)}=1) | ({TRIGGER.VALUE}=0&{Template SNMP Traps - MEXL_HMS:snmptrap["IP Input:"].str(status OK)}=0)
12:54:11 2015/04/17 PDU INFO:
notificationtype TRAP
version 1
receivedfrom UDP: [%SOMEIP%]:%SOMEPORT%->[%SOMEIP%]
errorstatus 0
messageid 0
community #####
transactionid 1983543
errorindex 0
requestid 1452548624
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (210624676) 24 days, 9:04:06.76
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.27593.10.30.5
SNMPv2-SMI::enterprises.27593.10.31.1 type=4 value=STRING: "san-prod-enc-102"
SNMPv2-SMI::enterprises.27593.10.31.2 type=2 value=INTEGER: 1
SNMPv2-SMI::enterprises.27593.10.31.3 type=2 value=INTEGER: 0
SNMPv2-SMI::enterprises.27593.10.31.4 type=4 value=STRING: "2015-04-17 12:54:08"
SNMPv2-SMI::enterprises.27593.10.31.5 type=4 value=STRING: "IP Input: status OK"
I would like to know if this is possible. I have SNMP Traps going in Zabbix 2.2.2. There is a device that is used as a management system for multiple other devices. It pushes traps for the devices it manages with status changes, problems, etc....
I would like to use the traps from the management system instead of setting up each of the slave devices separately.
Since the Device Manager is sending traps under its hostname I would like to know if it is possible to extract the Device Name from the trap and have it show up in the Trigger Name with some Macro or Variable. This is a sample of the trap format I receive. In this example I trigger on the string "IP Input:". I would like my trigger to also show the Value "san-prod-enc-102" in the Trigger Name visible in the Monitoring > Triggers page.
Current Trigger Expression: ({TRIGGER.VALUE}=1&{Template SNMP Traps - MEXL_HMS:snmptrap["IP Input:"].str(signal loss)}=1) | ({TRIGGER.VALUE}=0&{Template SNMP Traps - MEXL_HMS:snmptrap["IP Input:"].str(status OK)}=0)
12:54:11 2015/04/17 PDU INFO:
notificationtype TRAP
version 1
receivedfrom UDP: [%SOMEIP%]:%SOMEPORT%->[%SOMEIP%]
errorstatus 0
messageid 0
community #####
transactionid 1983543
errorindex 0
requestid 1452548624
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (210624676) 24 days, 9:04:06.76
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.27593.10.30.5
SNMPv2-SMI::enterprises.27593.10.31.1 type=4 value=STRING: "san-prod-enc-102"
SNMPv2-SMI::enterprises.27593.10.31.2 type=2 value=INTEGER: 1
SNMPv2-SMI::enterprises.27593.10.31.3 type=2 value=INTEGER: 0
SNMPv2-SMI::enterprises.27593.10.31.4 type=4 value=STRING: "2015-04-17 12:54:08"
SNMPv2-SMI::enterprises.27593.10.31.5 type=4 value=STRING: "IP Input: status OK"
Comment