Hi, I'm using zabbix to process SNMP traps generated from vmware vCenter server.
Actually the whole trap "blob" is sent to zabbix
A typical traps looks like:
The trigger only looks for vmwVpxdNewStatus.0 Red with "str"
The problem is how to create a decent email subject for alerts!
Would be nice to extract "vmwVpxdObjValue.0" from the trap but how??
Actually the whole trap "blob" is sent to zabbix
A typical traps looks like:
Code:
UDP: [192.168.0.35]:50340->[192.168.7.151] DISMAN-EVENT-MIB::sysUpTimeInstance 8:16:46:42.59 SNMPv2-MIB::snmpTrapOID.0 VMWARE-VC-EVENT-MIB::vpxdAlarmInfo VMWARE-VC-EVENT-MIB::vmwVpxdTargetObjType.0 other VMWARE-VC-EVENT-MIB::vmwVpxdOldStatus.0 Gray VMWARE-VC-EVENT-MIB::vmwVpxdNewStatus.0 Red VMWARE-VC-EVENT-MIB::vmwVpxdObjValue.0 Datastore usage on disk - Metric Space actually used = 9.513KB VMWARE-VC-EVENT-MIB::vmwVpxdTargetObj.0 vmware04:Local_storage1 SNMP-COMMUNITY-MIB::snmpTrapAddress.0 192.168.0.35 SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 "public" SNMPv2-MIB::snmpTrapEnterprise.0 VMWARE-PRODUCTS-MIB::vmwVC
The problem is how to create a decent email subject for alerts!
Would be nice to extract "vmwVpxdObjValue.0" from the trap but how??