Module: check_mk
Branch: master
Commit: 74ec71cb22d87a29101efa884165222d21d2502e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74ec71cb22d87a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Jul 9 16:27:16 2015 +0200
#2400 FIX windows_if.ps1: fixed exception in plugin when a interface team had no members
---
.werks/2400 | 9 +++++++++
ChangeLog | 1 +
agents/windows/plugins/windows_if.ps1 | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/.werks/2400 b/.werks/2400
new file mode 100644
index 0000000..5cf8ea7
--- /dev/null
+++ b/.werks/2400
@@ -0,0 +1,9 @@
+Title: windows_if.ps1: fixed exception in plugin when an interface team had no members
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i3
+Date: 1436451981
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index ebb7e6f..254b18f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -41,6 +41,7 @@
* 1265 FIX: check_mk_agent.aix: Filesystem Section now ignores cdrfs filesystems
* 1266 FIX: cisco_mem_asa: Special memory check for cisco asa devices....
NOTE: Please refer to the migration notes!
+ * 2400 FIX: windows_if.ps1: fixed exception in plugin when an interface team had no
members
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce
unhandled exceptions...
diff --git a/agents/windows/plugins/windows_if.ps1
b/agents/windows/plugins/windows_if.ps1
index 14bdafb..df94e59 100644
--- a/agents/windows/plugins/windows_if.ps1
+++ b/agents/windows/plugins/windows_if.ps1
@@ -14,6 +14,11 @@ if ((([Environment]::OSVersion.Version.Major -eq "6") -and
([Environment]::OSVer
Write-Host "[teaming_start]"
Write-Host
"TeamName`tTeamingMode`tLoadBalancingAlgorithm`tMemberMACAddresses`tMemberNames`tMemberDescriptions`tSpeed`tGUID"
foreach ($team in $teams){
+ $membermacs = $null
+ $members = $null
+ $netinterface = $null
+ $netspeed = $null
+ $netguid = $null
Write-Host -NoNewline $team.Name`t
Write-Host -NoNewline $team.tm`t
Write-Host -NoNewline $team.lba`t