Ad Widget

Collapse

Calling wsl with UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dkoski
    Member
    • May 2016
    • 41

    #1

    Calling wsl with UserParameter

    I have created a template using UserParameter to call wsl to get the RAID status on a Windows server. The script works from CMD and PowerShell but when called from Zabbix, it fails. The log shows "cmd_result:'A'" followed by "Sending back [A]". I tested with zabbix_get on the proxy with various forms of system.run to execute wsl but the outcome is the same: zabbix_get shows a return value of "A". Is it possible to call wsl from zabbix? Even executing "wsl ls" from the PowerShell and CMD prompts works but fails using system.run.
    Last edited by dkoski; 02-08-2021, 20:21.
  • dkoski
    Member
    • May 2016
    • 41

    #2
    I found that if I run Zabbix Agent as Administrator the scripts will execute but even a user in the Administrators group fails. Even the SYSTEM (default) user fails. Only Administrator will execute the scripts. So now I have to set the password for the service to track the actual password for Administrator. I see no way around that.

    Comment

    Working...