mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Changes Performance Counter category output
This commit is contained in:
parent
4d614cacfa
commit
9916d88a97
2 changed files with 2 additions and 2 deletions
|
|
@ -53,5 +53,5 @@ function Show-IcingaPerformanceCounters()
|
||||||
$counters.Add('error', $_.Exception.Message);
|
$counters.Add('error', $_.Exception.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $counters;
|
return $counters.Keys;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
function Get-IcingaMemoryPerformanceCounter()
|
function Get-IcingaMemoryPerformanceCounter()
|
||||||
{
|
{
|
||||||
$MemoryStart = (Show-IcingaPerformanceCounters -CounterCategory 'Memory').Keys;
|
$MemoryStart = (Show-IcingaPerformanceCounters -CounterCategory 'Memory');
|
||||||
$MemoryCounter = New-IcingaPerformanceCounterArray -Counter $MemoryStart;
|
$MemoryCounter = New-IcingaPerformanceCounterArray -Counter $MemoryStart;
|
||||||
[hashtable]$Result = @{};
|
[hashtable]$Result = @{};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue