Ad Widget

Collapse

Hyper-V monitoring with Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hubertsvk
    Junior Member
    • Jul 2019
    • 15

    #1

    Hyper-V monitoring with Zabbix


    Hi,
    iin zabbix agent (active/passive) i set timeout to 30sec but still in log I have timeout
    Failed to execute command "powershell -NoProfile -NoLogo -File "C:\zabbix\scripts\zbx-hyperv.ps1" full": Timeout while executing a shell script.
    active check "ms.hyperv[full]" is not supported: Timeout while executing a shell script.

    I have zabbix 7 lts and problem is on windows 2012 r2, this problem i had in zabbix 6 lts too

  • hubertsvk
    Junior Member
    • Jul 2019
    • 15

    #2
    I attached zbx-hyperv script
    Attached Files

    Comment

    • hubertsvk
      Junior Member
      • Jul 2019
      • 15

      #3
      what happens? Script return expected results, firts run is cca 20sec, second run cca 5sec

      Comment

      • KraaaS
        Junior Member
        • Jan 2025
        • 1

        #4
        I have the same issue. I was able to resolve it. Just open you zabbix config file, mine is on C:\zabbix\conf\zabbix_agentd.conf and then change the row
        Code:
        UserParameter=ms.hyperv[*],powershell -NoProfile -NoLogo -File c:\zabbix\bin\zbx-hyperv.ps1 $1
        with
        Code:
        UserParameter=ms.hyperv[*],%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NoLogo -File c:\zabbix\bin\zbx-hyperv.ps1 $1
        or you can change with full path if you have different env variables on your system like:
        Code:
        UserParameter=ms.hyperv[*],C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NoLogo -File c:\zabbix\bin\zbx-hyperv.ps1 $1

        Comment

        Working...