Ad Widget

Collapse

Problem zabbix 6.2 system.run on host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alescri
    Member
    • May 2019
    • 32

    #1

    Problem zabbix 6.2 system.run on host

    Good morning,
    I'm having a problem with a host,
    I would like to restart the host based on a trigger event.
    when the action is triggered I receive "unknown metric system.run" as a response.
    I also tried from the host cli getting the following output :
    Code:
    c:\Program Files\Zabbix Agent 2>zabbix_agent2.exe -test system.run["Powershell C
    :\Program Files\Zabbix Agent 2\script\reboot.ps1 *",*]
    system.run[Powershell C:\Program Files\Zabbix Agent 2\script\reboot.ps1 *,*][m|Z
    BX_NOTSUPPORTED] [Unknown metric system.run]
    i already added the Allow.key:
    AllowKey=system.run["Powershell C:\Program Files\Zabbix Agent 2\script\reboot.ps1 *",*]
    AllowKey=system.run[*]

    regards​
  • juano1985
    Junior Member
    • Mar 2023
    • 1

    #2
    Hi,
    I resolved this same issue by just adding and restarting the agent in zabbix_agent2.conf file:

    AllowKey=system.run[*]

    There is a thread about this issue: https://www.zabbix.com/forum/zabbix-...is-unsupported

    Apparently there is a mismatch issue between system.run items in server and agent2. The other thing that helped here was updating zabbix agent to > 6.0
    Hope this helps!
    Best

    Comment

    Working...