icinga-powershell-framework/modules/cpu.ps1

18 lines
394 B
PowerShell
Raw Normal View History

2018-11-06 11:14:49 -05:00
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;