I have some windows servers where i use zabbix to start remote scripts (powershell) using trigger actions. We used to place the script on d-drive (window servers), but from now on the servers will have d as dvd and we need to use e: instead.
I have been looking at options on how to control the trigger actions run run either on d or e, but so far i not found as easy setup.
I like to have this change once and now have to change anything when changing/replacing servers, i like zabbix to handle this and not needing manual action when adding or replaceing servers.
So far my best idea, which i have not testet yet is to double trigger and add test if file exist and the have the drive info in trigger name and then create a condition in the trigger action to see if "d-drive" is in the name and the run d: and then the same for e:
Can this be done smarter using macro, tags and so on from some trigger or discovery ?
I have been looking at options on how to control the trigger actions run run either on d or e, but so far i not found as easy setup.
I like to have this change once and now have to change anything when changing/replacing servers, i like zabbix to handle this and not needing manual action when adding or replaceing servers.
So far my best idea, which i have not testet yet is to double trigger and add test if file exist and the have the drive info in trigger name and then create a condition in the trigger action to see if "d-drive" is in the name and the run d: and then the same for e:
Can this be done smarter using macro, tags and so on from some trigger or discovery ?