Ad Widget

Collapse

How to write UserParameter in the zabbix angent config file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aaron_Yu
    Junior Member
    • May 2020
    • 26

    #1

    How to write UserParameter in the zabbix angent config file

    I have a VDI enviroment, and I want to monitoring it use zabbix.

    zabbix don't have key to do it. So I need to write UserParameter.

    Now, I have some script, they may help me check the status of virtual desktop.

    I put these script together, then I can enter a host name to check the status of host itself.


    I want to monitor the one-to-one status of each host.
    What do I do?


    this is the script:
    Code:
    asnp citrix*
    $Hostname = (Get-BrokerMachine).HostedMachineName       # get a host list
    Write-Output "This is Virtual Desktop list:"
    Write-Output $VDName
    $VM = Read-Host "Please select a virutal machin you want to check status"      #select host
    (Get-BrokerMachine -HostedMachineName $VM).RegistrationState
Working...