Module: check_mk
Branch: master
Commit: 58f36e4567e0f492e8826880cc98be2dc96c733e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=58f36e4567e0f4…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Feb 17 11:29:27 2017 +0100
updated werk 4358
Change-Id: I6fbe3663477363a2dd541bc856d7253c672e912d
---
checks/wmi_cpuload | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/wmi_cpuload b/checks/wmi_cpuload
index bac9089..3c90a6c 100644
--- a/checks/wmi_cpuload
+++ b/checks/wmi_cpuload
@@ -43,7 +43,7 @@ def check_wmi_cpuload(item, params, parsed):
try:
cores = int(computer_system.get(0, "NumberOfLogicalProcessors"))
- except (ValueError, MKGeneralException):
+ except (ValueError, KeyError, MKGeneralException):
# NumberOfLogicalProcessors can be an empty string, not sure why
cores = int(computer_system.get(0, "NumberOfProcessors"))