[ZBX-7212] Host interface macros are resolved incorrectly in script confirmations Created: 2013 Oct 25 Updated: 2017 May 30 Resolved: 2013 Oct 29 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.1.9 |
Fix Version/s: | 2.1.9 |
Type: | Incident report | Priority: | Minor |
Reporter: | Pavels Jelisejevs (Inactive) | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | hostinterfaces, macros, scripts | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
Host interface priorities are not taken into account when resolving interface-related macros. Here's how you can reproduce the problem: macro in its confirmation text. The problem is caused by the following code in CMacrosResolver.php:240: $dbInterfaces = DBselect( Not only doesn't it sort interfaces by priority, but it tries to filter interface types using priority values. I suggest to fix this problem after |
Comments |
Comment by Eduards Samersovs (Inactive) [ 2013 Oct 29 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7212 |
Comment by Ivo Kurzemnieks [ 2013 Oct 31 ] |
TESTED |
Comment by Eduards Samersovs (Inactive) [ 2013 Oct 31 ] |
Fixed in versions pre-2.1.9 (trunk) r.39707 |