[ZBX-5625] If the dynamic indexes use a macros an item set is unsupported Created: 2012 Sep 26 Updated: 2017 May 30 Resolved: 2012 Oct 01 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.0.2rc2, 2.1.0 |
Fix Version/s: | 2.0.3rc2, 2.1.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | Victor Bashkirov | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | dynamicindexes, items | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
CentOS release 5.8 (Final) |
Attachments: | item config.jpg node items status.jpg node macros config.jpg | ||||||||
Issue Links: |
|
Description |
After installing the new version of the pre-zabbix-2.1.0-30326 stopped working an item with dynamic indices that use macros. not working example SNMP OID Log: |
Comments |
Comment by Victor Bashkirov [ 2012 Sep 27 ] |
in the old version works в старых версиях работало |
Comment by Victor Bashkirov [ 2012 Sep 27 ] |
worked in the pre-zabbix-2.1.0-29194 |
Comment by Eric Gearhart [ 2012 Sep 28 ] |
Are you sure this isn't a duplicate of https://support.zabbix.com/browse/ZBX-4793 ? Dynamic indexes seem to be broken for a bunch of folks (me included) |
Comment by Victor Bashkirov [ 2012 Sep 28 ] |
I think problem in file src\libs\zbxserver\expression.c else if (0 == strcmp(m, MVAR_HOST_DNS)) { if (INTERFACE_TYPE_UNKNOWN != dc_item->interface.type) replace_to = zbx_strdup(replace_to, dc_item->interface.dns_orig); else ret = FAIL; }else if (0 == strcmp(m, MVAR_HOST_CONN)) { if (INTERFACE_TYPE_UNKNOWN != dc_item->interface.type) replace_to = zbx_strdup(replace_to, dc_item->interface.addr); else ret = FAIL; } } |
Comment by Alexander Vladishev [ 2012 Oct 01 ] |
Confirmed. Broken by: r29444 | sasha | 2012-08-08 09:10:24 +0300 (Wed, 08 Aug 2012) | 1 line .......PS. , {HOST.DNS}and {HOST.CONN}macros in item key parameters |
Comment by Alexander Vladishev [ 2012 Oct 01 ] |
Changed priority to Blocker. |
Comment by Alexander Vladishev [ 2012 Oct 01 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-5625 |
Comment by Andris Mednis [ 2012 Oct 01 ] |
Successfully tested. |
Comment by Alexander Vladishev [ 2012 Oct 01 ] |
Fixed in version pre-2.0.3 r30443 and pre-2.1.0 (trunk) r30445. |