[ZBX-4700] errors in item list when using {HOST.CONN} macro in item name Created: 2012 Feb 27 Updated: 2017 May 30 Resolved: 2012 Mar 20 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.0.0rc1 |
Fix Version/s: | 2.0.0rc2 |
Type: | Incident report | Priority: | Minor |
Reporter: | Andrew Howell | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
RHEL 6.2 |
Attachments: | zabbix Capture.PNG zabbix Capture2.PNG |
Description |
I get the following error when looking at the Template configuration items list screen on a template with {HOST.CONN}macro in the item name reset() expects parameter 1 to be array, null given [include/items.inc.php:548] |
Comments |
Comment by Alexei Vladishev [ 2012 Feb 27 ] |
It is important to have $1, $2 macros in item description in order to reproduce it. |
Comment by Oleksii Zagorskyi [ 2012 Feb 27 ] |
So, requested expanding the macro {HOST.CONN} in the item name (in 2.0 item description renamed to item name)But according current documentation the macro {HOST.CONN} is not supported for item names: |
Comment by Andrew Howell [ 2012 Feb 28 ] |
Ahh, I thought it was, but I think I had checked trigger name, rather than item name. Is there a reason why it's not supported for item names, but is for trigger names? The really odd thing however is that it actually works for item names everywhere except for the the item list in template page. It works in the item list for a host page, and in the latest data for the host. Can it be fixed for the template page and then become officially supported? |
Comment by Alexey Fukalov [ 2012 Mar 19 ] |
dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4700 |
Comment by Alexander Vladishev [ 2012 Mar 20 ] |
(1) in templates interface based macros in item key parameters should be opened to UNKNOWN <Vedmak> RESOLVED |
Comment by Alexander Vladishev [ 2012 Mar 20 ] |
(2) frontends/php/include/items.inc.php:531:535 this code should be rewritten <Vedmak> RESOLVED |
Comment by Alexander Vladishev [ 2012 Mar 21 ] |
Successfully tested! |
Comment by Alexey Fukalov [ 2012 Mar 21 ] |
svn://svn.zabbix.com/trunk 26299 |