Ad Widget

Collapse

AllowKey=system.run help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wec_admin
    Junior Member
    • Mar 2023
    • 3

    #1

    AllowKey=system.run help

    I have a trigger action to run a command to restart a service during a specific trigger. I have it working using the "AllowKey=system.run[*]" on the agent, but I want to restrict it to only the remote command in the trigger action. The command I am running is:
    c:\windows\system32\net stop "Service Name" & C:\windows\system32\net start "Service name"

    I looked at the documentation here (https://www.zabbix.com/documentation...estrict_checks) but I'm a bit confused on the syntax for system.run. Any help on this would be appreciated.

Working...