[ZBX-10758] xml import does not convert snmp lld rule Created: 2016 May 06  Updated: 2017 May 30  Resolved: 2016 Sep 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.0.2
Fix Version/s: 3.0.5rc1, 3.2.1rc1, 3.4.0alpha1

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: lld, snmp, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

ZBXNEXT-1554 implemented multiple OID support for SNMP LLD.
while db upgrade did convert the existing rules, xml import does not do that.
the specification omits xml changes completely.

people have stumbled upon this problem in the irc channel a few times already.



 Comments   
Comment by Alexander Vladishev [ 2016 Sep 13 ]

Available in development branch svn://svn.zabbix.com/branches/dev/ZBX-10758 .

Comment by Alexander Vladishev [ 2016 Sep 13 ]

(1) No translation strings changed

gunarspujats CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Sep 13 ]

(2) Coding style
include/classes/parsers/CItemKey.php : 388

  • strchr() is alias of strstr(), no need to mix it with strstr(), which is used in the same line;
  • in this case we need just to determine occurrence of particular characters, so it's better to use strpos(), which is faster and consumes less memory.

sasha RESOLVED in r62478.

gunarspujats CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Sep 13 ]

Tested.

Comment by Alexander Vladishev [ 2016 Sep 15 ]

Fixed in:

  • pre-3.0.5rc1 r62523
  • pre-3.2.1rc1 r62524
  • pre-3.3.0 (trunk) r62525
Comment by Alexander Vladishev [ 2016 Sep 15 ]

(3) Documentation

martins-v RESOLVED

sasha CLOSED

Generated at Fri Mar 29 12:18:30 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.