Hi,
I have a remote command script in "scripts" that can start a service when it is down.
Is it possible to put in the service name with a macro in my script?
let me show it:
I have a item with key:
service_state[Application]
"Application" is the service name on windows.
The item monitors if the service is down or not.
When it is down Zabbix shows this through a trigger on my screen.
I can click the trigger and have made a script "Start Service"
the script contains:
system.run[net start {MACRO}]
What macro can I use so the script will work?
I Tried filling the description field in the item and then use {ITEM.DESCRIPTION} in my script but that doesn't work.
Does someone have a idea what macro I can use for it?
I have a remote command script in "scripts" that can start a service when it is down.
Is it possible to put in the service name with a macro in my script?
let me show it:
I have a item with key:
service_state[Application]
"Application" is the service name on windows.
The item monitors if the service is down or not.
When it is down Zabbix shows this through a trigger on my screen.
I can click the trigger and have made a script "Start Service"
the script contains:
system.run[net start {MACRO}]
What macro can I use so the script will work?
I Tried filling the description field in the item and then use {ITEM.DESCRIPTION} in my script but that doesn't work.
Does someone have a idea what macro I can use for it?

Comment