HunnyPuns / nagios-windows-plugins

My Nagios Windows Plugins project
GNU General Public License v3.0
1 stars 1 forks source link

get-process's CPU output doesn't give CPU usage #18

Closed HunnyPuns closed 2 months ago

HunnyPuns commented 1 year ago

Using Get-Process in check_process.ps1 is a problem. The CPU metric that it returns is the amount of CPU time, not the CPU usage.

HunnyPuns commented 2 months ago

Putting this right here for reference.

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-process?view=powershell-7.4

HunnyPuns commented 2 months ago

Fixed in da74f8a