Hello all,
I just created a script, what should restart a windows service when the trigger "High memory utilization" start.
If I test it, I receive the error "unknown metric syste.run". I already enabled the AllowKey in the Agent conf on both servers (zabbix host and windows host) but I unfortunately receive the error.
I also tried this two things:
1. I created a powershell script and saved it under "C:\zabbix-agent-scripts\RestartServiceNWS01.ps1", after that I created a Trigger action what will run this script, same error.
2. I created a script in zabbix (Administration -> Scripts) with the command "net stop example.service && net start example.service". I also added this to the agent config file (AllowKey=system.run[C:\Windows\System32\net stop example.service && net start example.service*"]) but still receive the same error.
Here is a screenshot from the zabbix server conf:

Here is a screenshot from the windows server agent conf.

I thought it also should work without any changes in the conf files since they write "If no AllowKey or DenyKey rules defined, all keys are allowed".
Thanks in advance.
I just created a script, what should restart a windows service when the trigger "High memory utilization" start.
If I test it, I receive the error "unknown metric syste.run". I already enabled the AllowKey in the Agent conf on both servers (zabbix host and windows host) but I unfortunately receive the error.
I also tried this two things:
1. I created a powershell script and saved it under "C:\zabbix-agent-scripts\RestartServiceNWS01.ps1", after that I created a Trigger action what will run this script, same error.
2. I created a script in zabbix (Administration -> Scripts) with the command "net stop example.service && net start example.service". I also added this to the agent config file (AllowKey=system.run[C:\Windows\System32\net stop example.service && net start example.service*"]) but still receive the same error.
Here is a screenshot from the zabbix server conf:
Here is a screenshot from the windows server agent conf.
I thought it also should work without any changes in the conf files since they write "If no AllowKey or DenyKey rules defined, all keys are allowed".
Thanks in advance.
Comment