I'm trying to handle Cisco PGW2200 traps about links UpDown and such things.
I've created basically:
Item of type SNMP Trap, Key is `snmptrap[CISCO-TRANSPATH-MIB::tpCompMMLName.1900545]` in order to handle all traps related
to one PGW object (link in this case)
Trigger looks like (I know that it isn't working, the purpose is to show the issue):
The issue is trigger switching on receiving link Up trap, so it goes from OK to Problem on first trap and from Problem to OK on second.
AFAIU it's possible only if regexp is False (=0) on first trap and True (=1) on second, which is impossible.
Related MIB can be found at http://www.cisco.com/iam/PGW_MIBS/973/tp.my , it's actually not completely correct, but can be used to convert numeric OID to text for the readability sake.
trap.sh is script to send traps using net-snmp (commuity is 'public', zabbix IP is 10.1.2.30, can be changed in the source). Usage: `./trap.sh up` for linkUp trap, `./trap.sh down` for linkDown trap.
pgw_linkupdown.txt contains linkDown and linkUp traps from zabbix log, sent by PGW.
Up and Down traps are different in one line/value:
"The alarm set or not."