Changes Performance Counter category output

This commit is contained in:
Alexander Stoll 2019-10-29 15:40:35 +01:00
parent 4d614cacfa
commit 9916d88a97
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -1,6 +1,6 @@
function Get-IcingaMemoryPerformanceCounter()
{
$MemoryStart = (Show-IcingaPerformanceCounters -CounterCategory 'Memory').Keys;
$MemoryStart = (Show-IcingaPerformanceCounters -CounterCategory 'Memory');
$MemoryCounter = New-IcingaPerformanceCounterArray -Counter $MemoryStart;
[hashtable]$Result = @{};