Ad Widget

Collapse

powershell - zabbix take cpu processes and send in %

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • glardz
    Member
    • Oct 2018
    • 45

    #1

    powershell - zabbix take cpu processes and send in %

    i want monitor windows cpu processes in % by zabbix but zabbix item proc.cpu.util[Sqlsvr.exe] is not supported in windows.

    so i try to do a script in powershell and executed by zabbix, i don't know if its a good idea, do you have idea ?

    my powershell script to take cpu process in %:
    $test = Get-WmiObject -class Win32_PerfFormattedData_PerfProc_Process -filter "Name='chrome'" | Select-Object @{ Expression = {$_.PercentProcessorTime}} |Format-Table -AutoSize echo $test

    do you have idea to take cpu process in % or take only cpu process in % ?
Working...