-
Problem report
-
Resolution: Duplicate
-
Major
-
None
-
7.0.0alpha7
-
None
-
Support backlog
Similar problem as ZBX-21818{}
Steps to reproduce:
- create host macro
- create Script item
- add param with value from example host macro
- add basic script (whatever you want)
- var param=JSON.parse(value);
return JSON.stringify(param);
- var param=JSON.parse(value);
- apply
- test
- get value and test
- return error
- Cannot execute script: SyntaxError: invalid json (at offset 1) at [anon] (duktape.c:37568) internal at parse () native strict preventsyield at [anon] (function:1) preventsyield
Result:
The problem seems to be in passing the macro to the test script. When I save the item and press execute now, zabbix returns the correct value in latest data.
- duplicates
-
ZBX-23696 Script item parameters not being passed to script
- Closed