Hello. I want to set up auto restart Windows services via trigger base action. I am running Zabbix 6 on Debian.
But I don´t want create script for every one service, I want to use variable in script.
The only one workaround (this is not a solution) I found is add {#SERVICE.NAME} macro to the trigger level tag and then use {EVENT.TAGS} macro in the script. This works.
But what to do, if I have more than one tag? Nice, there is another macro {EVENT.TAGS.<tag name>}. But this macro doesn´t work in scripts and it´s presented as normal string and not variable.
So what else can I do? Delete all tags? I wouldn't have a problem with that in Zabbix 5 and older version, where application category is. But in Zabbix 6 there was ridiculous change and application category was removed and all applications were moved to the tags. So these tags are now alternative to categorize different items and I don´t want to delete them.
Is there any solution to resolve this?
Thanks for any help.
But I don´t want create script for every one service, I want to use variable in script.
The only one workaround (this is not a solution) I found is add {#SERVICE.NAME} macro to the trigger level tag and then use {EVENT.TAGS} macro in the script. This works.
But what to do, if I have more than one tag? Nice, there is another macro {EVENT.TAGS.<tag name>}. But this macro doesn´t work in scripts and it´s presented as normal string and not variable.
So what else can I do? Delete all tags? I wouldn't have a problem with that in Zabbix 5 and older version, where application category is. But in Zabbix 6 there was ridiculous change and application category was removed and all applications were moved to the tags. So these tags are now alternative to categorize different items and I don´t want to delete them.
Is there any solution to resolve this?
Thanks for any help.
Comment