Hello,
Using Zabbix 5.4.x server and agent.
We have a Windows 2019 Server that has a service that will occasionally stop for no apparent reason. This causes an alert in Zabbix. It is not a critical service, but we would like to keep it running.
We set up a Script and and an Action to restart the service when it stops.
On the agent side, we set up: AllowKey=system.run[*] followed by DenyKey=system.run[*]
With these settings the Remote Command process is working perfectly.
The item key for the trigger is: service.info["AMD External Events Utility",state]
The trigger name is: "AMD External Events Utility" (AMD External Events Utility) is not running (startup type automatic)
The Script Command is: net start "AMD External Events Utility"
We would like to restrict the Remote Command process on the agent so that this is the only remote command that can be executed from Zabbix.
I have tried a number of permutations of the AllowKey=system.run[] statement that would lock this down, but I cannot find one that will work properly. If I use anything other than AllowKey=system.run[*], the Remote Command fails with an "Unsupported item key." error.
Can anyone help me with the proper syntax for the AllowKey statement to allow just the restart of this one service?
Thanks for any and all help.
Bryan Hunt
Using Zabbix 5.4.x server and agent.
We have a Windows 2019 Server that has a service that will occasionally stop for no apparent reason. This causes an alert in Zabbix. It is not a critical service, but we would like to keep it running.
We set up a Script and and an Action to restart the service when it stops.
On the agent side, we set up: AllowKey=system.run[*] followed by DenyKey=system.run[*]
With these settings the Remote Command process is working perfectly.
The item key for the trigger is: service.info["AMD External Events Utility",state]
The trigger name is: "AMD External Events Utility" (AMD External Events Utility) is not running (startup type automatic)
The Script Command is: net start "AMD External Events Utility"
We would like to restrict the Remote Command process on the agent so that this is the only remote command that can be executed from Zabbix.
I have tried a number of permutations of the AllowKey=system.run[] statement that would lock this down, but I cannot find one that will work properly. If I use anything other than AllowKey=system.run[*], the Remote Command fails with an "Unsupported item key." error.
Can anyone help me with the proper syntax for the AllowKey statement to allow just the restart of this one service?
Thanks for any and all help.
Bryan Hunt
Comment