Hi,
I'm trying to create a script that runs on a host. All I want it to do is pass through the following key found on the HOST.
{HOST
s.windows.inventory.serialnumber.last()}
The follows commands are saved:
echo ".."
echo {HOST
s.windows.inventory.serialnumber.last()}
echo ".."
However, when I run this script from latest data on a host, I get an error:
Details Cannot execute script.
s.windows.inventory.serialnumber.last()} value is not being evaluated. I've changed the script slightly to run a local script, i.e. /tmp/somescript.sh {HOST
s.windows.inventory.serialnumber.last()} and I get the same result. I can confirm there is a value set under that host key.
I've also tried a USER MACRO, i.e {$TEST} = {HOST
s.windows.inventory.serialnumber.last()} and even a GLOBAL MACRO, but none of it renders.
I'm using Zabbix Server 6
What am I missing here?
Thanks
I'm trying to create a script that runs on a host. All I want it to do is pass through the following key found on the HOST.
{HOST
s.windows.inventory.serialnumber.last()}The follows commands are saved:
echo ".."
echo {HOST
s.windows.inventory.serialnumber.last()}echo ".."
However, when I run this script from latest data on a host, I get an error:
Details Cannot execute script.
- ..
- sh: 2: Syntax error: "(" unexpected
s.windows.inventory.serialnumber.last()} value is not being evaluated. I've changed the script slightly to run a local script, i.e. /tmp/somescript.sh {HOST
s.windows.inventory.serialnumber.last()} and I get the same result. I can confirm there is a value set under that host key.I've also tried a USER MACRO, i.e {$TEST} = {HOST
s.windows.inventory.serialnumber.last()} and even a GLOBAL MACRO, but none of it renders.I'm using Zabbix Server 6
What am I missing here?
Thanks
Comment