Ad Widget

Collapse

Zabbix Windows agent cannot run system.run

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kim Han Young
    Junior Member
    • Jan 2023
    • 1

    #1

    Zabbix Windows agent cannot run system.run

    Hello Everyone.

    I'm newbie to Zabbix.
    I'm try to run system.run item on Windows agent on windows server 2019 standard.
    However, the following error message occurs.
    "state_check" is not recognized as an internal or external command, operable program or batch file.​

    23880:20230116:185131.769 Executing command 'state_check --item DIMENSION'
    23880:20230116:185131.817 execute_str() command:'state_check --item DIMENSION' len:93 cmd_result:''state_check' '
    23880:20230116:185131.818 for key [system.run[state_check --item DIMENSION]] received value ['state_check' is not recognized as an internal or external command, operable program or batch file.​

    "state_check.exe" is console application written by C#.
    The file is in the same folder as Agent.
    Key of item : system.run[state_check --item DIMENSION]

    I changed zabbix_agentd.conf to allow system.run command as below :
    AllowKey=system.run[*]

    No problem on my desktop. My desktop os is Windows 10 pro.
    But error occurred on Windows Server 2019 standard.
    The same error occurs even if administrator privileges are given to zabbix_agentd.exe and zabbix_get.exe.

    What could be the problem? I'd be grateful if you could let us know which items to check.
    Last edited by Kim Han Young; 17-01-2023, 04:18.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    system.run[state_check.exe --item DIMENSION]
    system.run[\full_path_to_exe\state_check.exe --item DIMENSION]

    Comment

    • Inconnu
      Junior Member
      • Aug 2022
      • 4

      #3
      Hey Kim Han Young it´s work?

      I have a problema with exec a .exe file.

      Comment

      Working...