icinga-powershell-framework/modules/cpu.ps1
2018-11-06 17:14:49 +01:00

18 lines
No EOL
394 B
PowerShell

param($Config = $null);
function ClassCPU
{
param($Config = $null);
# This will return a hashtable with every single counter
# We specify within the array
$counter = Get-Icinga-Counter -CounterArray @(
'\Processor(*)\% Processor Time',
'\System\Processor Queue Length',
'\System\Threads'
);
return $counter;
}
return ClassCPU -Config $Config;