Changes Performance Counter category output

This commit is contained in:
Crited 2019-10-29 15:40:35 +01:00
parent 401d08f66f
commit f899c6f010
2 changed files with 2 additions and 2 deletions

View file

@ -53,5 +53,5 @@ function Show-IcingaPerformanceCounters()
$counters.Add('error', $_.Exception.Message); $counters.Add('error', $_.Exception.Message);
} }
return $counters; return $counters.Keys;
} }

View file

@ -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 = @{};