Module: check_mk
Branch: master
Commit: 732e97db7cc8260d85c134b633dabc77cb6c9ee4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=732e97db7cc826…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 8 11:10:34 2017 +0200
5199 FIX winperf_if: DHCP was always shown as enabled
Change-Id: I59b0d7db25742fe750046142e8d94aa49d415702
---
.werks/5199 | 11 +++++++++++
checks/winperf_if | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/5199 b/.werks/5199
new file mode 100644
index 0000000..32d0649
--- /dev/null
+++ b/.werks/5199
@@ -0,0 +1,11 @@
+Title: winperf_if: DHCP was always shown as enabled
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1504861811
+
+
diff --git a/checks/winperf_if b/checks/winperf_if
index 1e7b741..7821d77 100644
--- a/checks/winperf_if
+++ b/checks/winperf_if
@@ -324,7 +324,7 @@ def check_if_dhcp(item, _no_params, info, nic_names, nic_index):
match = name == item
if match:
- if as_dict["DHCPEnabled"]:
+ if as_dict["DHCPEnabled"] == "TRUE":
return 1, "dhcp enabled"
else:
return 0, "dhcp %s" % as_dict["DHCPEnabled"]