Module: check_mk
Branch: master
Commit: b7d2d11d6b08debd0316bfc56045a04cfb843370
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b7d2d11d6b08de…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Apr 26 10:17:53 2013 +0200
winperf_if: assume devices up if wmic_if is missing
---
checks/winperf_if | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/checks/winperf_if b/checks/winperf_if
index 4ecd625..868c00e 100644
--- a/checks/winperf_if
+++ b/checks/winperf_if
@@ -130,7 +130,9 @@ def convert_winperf_if(info):
nic_name,
"loopback" in nic_name.lower() and '24' or '6',
nic[10], # Aktuelle Bandbreite
- nic.get('NetConnectionStatus', '7') == '2' and
'1' or '2',
+ # NetConnectionStatus: 2 st up, 7 ist 'not connected'. If the plugin
+ # wmic_if is missing and we have link information we need to assume
'up':
+ nic.get('NetConnectionStatus', '2') == '2' and
'1' or '2',
nic[-246], # ifInOctets,
nic[14], # inucast
0, # inmcast