From 5d3184bb07a60cef706bf6d07b1a3536767f7b7e Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Mon, 8 Jun 2026 11:36:37 +0200 Subject: [PATCH] Fixes network include filter being broken and never being applied properly --- doc/31-Changelog.md | 8 ++++++++ .../Join-icingaNetworkDeviceDataPerfCounter.psm1 | 12 ++---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/31-Changelog.md b/doc/31-Changelog.md index 9233212b..7ebbf1ff 100644 --- a/doc/31-Changelog.md +++ b/doc/31-Changelog.md @@ -7,6 +7,14 @@ documentation before upgrading to a new release. Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-plugins/milestones?state=closed). +## 1.15.0 (2026-06-30) + +[Issue and PRs](https://github.com/Icinga/icinga-powershell-plugins/milestone/24) + +### Bugfixes + +* [#479](https://github.com/Icinga/icinga-powershell-plugins/pull/479) Fixes Network include filter for `Invoke-IcingaCheckNetworkInterface` being broken and never being applied properly + ## 1.14.1 (2026-03-31) [Issue and PRs](https://github.com/Icinga/icinga-powershell-plugins/milestone/23) diff --git a/provider/network/Join-icingaNetworkDeviceDataPerfCounter.psm1 b/provider/network/Join-icingaNetworkDeviceDataPerfCounter.psm1 index b7b412b7..9c78b4c7 100644 --- a/provider/network/Join-icingaNetworkDeviceDataPerfCounter.psm1 +++ b/provider/network/Join-icingaNetworkDeviceDataPerfCounter.psm1 @@ -28,19 +28,11 @@ function Join-IcingaNetworkDeviceDataPerfCounter() continue; } - if ((Test-IcingaArrayFilter -InputObject $GetNetworkDevice[$DeviceName].DeviceId -Include $IncludeNetworkDevice -Exclude $ExcludeNetworkDevice) -eq $FALSE) { - continue; - } - - if ((Test-IcingaArrayFilter -InputObject $DeviceName -Include $IncludeNetworkDevice -Exclude $ExcludeNetworkDevice) -eq $FALSE) { - continue; - } - if ((Test-IcingaArrayFilter -InputObject $GetNetworkDevice[$DeviceName].Name -Include $IncludeNetworkDevice -Exclude $ExcludeNetworkDevice) -eq $FALSE) { continue; } - if (($GetNetworkDevice.Containskey($DeviceName)) -eq $fALSE) { + if (($GetNetworkDevice.ContainsKey($DeviceName)) -eq $fALSE) { continue; } @@ -51,7 +43,7 @@ function Join-IcingaNetworkDeviceDataPerfCounter() foreach ($key in $NetworkDeviceObject.Keys) { $CounterObject = $NetworkDeviceObject[$key]; if (($CounterHashObject.ContainsKey($key)) -eq $TRUE) { - $CounterHashObject[$key].value += $CounterObject.value; + $CounterHashObject[$key].value += $CounterObject.value; } else { $CounterHashObject.Add($key, $CounterObject); }