[ZBX-21018] Macro value expands differently: running item VS test item Created: 2022 May 10  Updated: 2022 May 11  Resolved: 2022 May 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 5.0.23
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Aigars Kadikis Assignee: Zabbix Development Team
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File 1-macros.png     PNG File 2-not-using-double-quotes-for-argument.png     PNG File 3-item-not-working.png     PNG File 4-working-via-test-button.png     XML File Oracle ODBC monitoring via connection string.xml    
Issue Links:
Duplicate
duplicates ZBX-19381 Macro values are not correctly escape... Closed
Sub-task

 Description   

Macro value is using double quotes at the beginning and end:

3rd item argument is not using double quotes this time:

As a result, the item is not working. It prints an error:

Full item key:

testdb.odbc.select[test,,"\"Driver=/usr/lib/oracle/19.15/client64/lib/libsqora.so.19.1;DBQ=//10.133.253.44:49161/XE;UID=system;PWD=oracle;\""]

It is fine if the item is not working. However when clicking on the green link and testing item manually, it is working OK:

Expectation: The test button must simulate the same behaviour as it is using when running item in production.


Generated at Thu Jan 09 13:46:25 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.