mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
18 lines
No EOL
394 B
PowerShell
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; |