[ZBX-5521] In 2.0.3rc1 system macros HOST.* not work for Active items in Key field. Created: 2012 Aug 30  Updated: 2019 Dec 10

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.0.3rc1
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Grzegorz Grabowski Assignee: Unassigned
Resolution: Unresolved Votes: 8
Labels: keys, macros, server
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-11347 Macros in web monitoring configuratio... Closed
is duplicated by ZBX-7601 item macro not supported with active ... Closed

 Description   

HOST.* macros not working in "Zabbix agent (active)" anymore (worked till version 2.0.2)
More details in ZBX-5386

Bests,
Grzegorz



 Comments   
Comment by dimir [ 2012 Aug 30 ]

If we end up with notable changes for end-user they should be documented here:

http://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew203

Also current situation (regression) is documented here:

http://www.zabbix.com/documentation/2.0/manual/appendix/macros/supported_by_location#macros_supported_by_location

Comment by dimir [ 2012 Aug 30 ]

The reason this happened is because since 2.0.3 for HOST.* macros in an item keys we get information from the interface attached to the item. So the macros are not resolved anymore for items that do not have interfaces attached.

Sasha proposed to make the changes to Frontend to optionally select an interface for active agent items. That would not require any changes on the server side. So it's not clear which Component/s are related to this issue yet.

<zalex> Only for agent (active) items ?
How about calculated, aggregate, odbc items?

<dimir> We could not see a use case for others. Database monitor could be also the case, for additional parameters for example, as you point out below.

Comment by Grzegorz Grabowski [ 2012 Aug 31 ]

For calculated and odbc items it has no sense because KEY field is useless (only for identification)
All calculation (dbquery) is done in Additional parameters/Formula field.

Bests,
Grzegorz

Comment by Oleksii Zagorskyi [ 2012 Aug 31 ]

But what if I want to use some HOST.* macro in a SQL query of an ODBC item ?

Comment by Grzegorz Grabowski [ 2012 Aug 31 ]

It never work (before). Only user macro works.
No system macro works in Additional parameters but it will be good if it will be .

Now you have to use user macro and retype ex. {$HOST.IP} = 10.1.1.1 for host if you want use macro in Additional parameters.

Comment by Alexei Vladishev [ 2012 Sep 10 ]

Probably it should be fixed by allowing optional interface linkage for items.

Comment by Garry Harthill [ 2012 Sep 17 ]

Being able to use system macros in ODBC additional parameters would be nice. I have a similar configuration and have to manually edit the ODBC item for each host. It would be great if I could stick this in a template.

Is there a eta for this fix?

Comment by Grzegorz Grabowski [ 2012 Sep 22 ]

Is there a chance to include this fix in 2.0.3?

Comment by richlv [ 2012 Sep 22 ]

definitely not, as there is no fix yet, and 2.0.3 is about to be released

Comment by nms_user [ 2013 Apr 15 ]

Any chance to get this thing fixed soon?

I did the migration from 1.8.x to 2.0.5 today and am affected, too.

Comment by Aleksandrs Saveljevs [ 2015 Jul 31 ]

ZBXNEXT-2896 wants the same for external checks.

Comment by Glebs Ivanovskis (Inactive) [ 2017 Nov 29 ]

Should be moved to ZBXNEXT project, I think.

Generated at Fri Apr 26 00:37:35 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.