[ZBX-11434] Show decent error messages when creation of LLD SNMP items fails Created: 2016 Nov 07  Updated: 2024 Apr 10  Resolved: 2018 Jun 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.16rc1, 3.0.6rc1, 3.2.2rc1, 3.4.0alpha1
Fix Version/s: 4.0.0alpha8, 4.0 (plan)

Type: Problem report Priority: Major
Reporter: Glebs Ivanovskis (Inactive) Assignee: Sergejs Paskevics
Resolution: Fixed Votes: 0
Labels: lld, snmp, snmpdynamicindex, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team C
Sprint: Sprint 27, Sprint 28, Sprint 29, Sprint 30, Sprint 31, Sprint 32, Sprint 33, Sprint 34, Sprint 35, Sprint 36
Story Points: 2

 Description   

lld_items_make() should check the return code of substitute_key_macros() for SNMP OID field and produce a frontend error in cases when prototype OID is not valid or macro substitution in SNMP dynamic index fails. However, this is not a trivial fix because snmp_oid_proto is currently created for non-SNMP items as well.

Some work has been done in this direction for other item fields/types in ZBX-10723, ZBX-10828 and ZBX-11223.



 Comments   
Comment by Alexander Vladishev [ 2016 Dec 02 ]

glebs.ivanovskis, it seems that it is already fixed under ZBX-11223. Please confirm.

Comment by Glebs Ivanovskis (Inactive) [ 2016 Dec 06 ]

No, it wasn't fixed in ZBX-11223. ZBX-11223 created a "framework" for failure messages during lld_items_make() stage. But currently we only check for errors in macro resolution in item keys and formulas. Macro resolution in SNMP related fields is not checked for errors (or rather we ignore them).

Comment by Sergejs Paskevics [ 2018 Jan 30 ]

Fixed in dev branch - svn://svn.zabbix.com/branches/dev/ZBX-11434

Comment by Michael Veksler [ 2018 Jun 08 ]

Successfully tested.

Comment by Sergejs Paskevics [ 2018 Jun 11 ]

Implemented in pre4.0.0alpha8 (trunk) r81736.

Generated at Fri Apr 26 02:01:11 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.