[ZBX-5528] SNMPtrap.regexp() is unreliable Created: 2012 Aug 31 Updated: 2017 May 30 Resolved: 2012 Aug 31 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.0.2 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Major |
Reporter: | ojab | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | snmptraps, triggers | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
FreeBSD-8.2 |
Attachments: |
![]() ![]() ![]() ![]() |
Description |
I'm trying to handle Cisco PGW2200 traps about links UpDown and such things. I've created basically: =1& {pgw:snmptrap[CISCO-TRANSPATH-MIB::tpCompMMLName.1900545].regexp(CISCO-TRANSPATH-MIB::tpAlarmSet.0)}=0)` 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. 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: MAX-ACCESS not-accessible |
Comments |
Comment by ojab [ 2012 Aug 31 ] |
$ php -v |
Comment by richlv [ 2012 Aug 31 ] |
too much unrelated information. please, show item values and corresponding events for the time period you believe it is working incorrectly. |
Comment by ojab [ 2012 Aug 31 ] |
Basically: Trigger is in OK state -> 12:06:56 receiving linkUP trap -> Trigger in Problem state -> 12:07:02 receiving linkUP trap -> Trigger in OK state. |
Comment by richlv [ 2012 Aug 31 ] |
that seems to be totally ok to me. your trigger expression tells it to be in problem state : (if trigger is ok and we have a regexp match) so the events are generated as follows : in the second case no clause is matched because : |
Comment by ojab [ 2012 Aug 31 ] |
Ouch! Thanks, my fault, closing. |