Module: check_mk
Branch: master
Commit: 0da523e0dd549680e22fbe52e895f9a1d6eb6912
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0da523e0dd5496…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Thu Apr 2 12:04:32 2015 +0200
winperf_if FIX: in some cases IFs on (at least) HP-servers disappeared for no apparent
reason
---
checks/winperf_if | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/checks/winperf_if b/checks/winperf_if
index 20af278..2ee7edc 100644
--- a/checks/winperf_if
+++ b/checks/winperf_if
@@ -137,6 +137,14 @@ def convert_winperf_if(info):
found_match = False
+ # we need to ignore data on interfaces in the optional
+ # wmic section which are marked as non-existing, since
+ # it may happen that there are non-existing interfaces
+ # with the same nic_name as an active one (at least on HP
+ # hardware)
+ if as_dict["NetConnectionStatus"] == "4":
+ continue
+
# Exact match
if nic_name in nic_names:
found_match = True