[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: | 1-macros.png 2-not-using-double-quotes-for-argument.png 3-item-not-working.png 4-working-via-test-button.png Oracle ODBC monitoring via connection string.xml | ||||||||||||
Issue Links: |
|
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. |