Ad Widget

Collapse

Restrict Zabbix to only start a Windows service.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aaron88
    Junior Member
    • May 2025
    • 9

    #1

    Restrict Zabbix to only start a Windows service.

    Hello,

    I am working on having Zabbix start a Windows service when it detects the state change from "Running" to "Stopped". So far, everything is working fine. The issue I am running into is the Allowkey=system.run[]. When I use Allowkey=system.run[*], the script works. When I adjust it to use something stricter, the action trigger fails. I tried using various options like -AllowKey=system.run[powershell -Command "Start-Service*"], but it fails.

    Error in Zabbix: Click image for larger version

Name:	image.png
Views:	44
Size:	3.1 KB
ID:	504306


    Click image for larger version

Name:	image.png
Views:	77
Size:	26.8 KB
ID:	504305

    Has anyone been able to get Zabbix to start a Windows service? If so, what allowkey syntax did you use?​
Working...