Module: check_mk
Branch: master
Commit: daa5fecc80bbb1277c99b6648a8521d23255d9b1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=daa5fecc80bbb1…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Mar 13 13:46:34 2017 +0100
4445 FIX cisco_cpu: Fixed crash if values are empty
The checkplugin now also deals with empty values. See werk #2088 for more
information.
Change-Id: If8c32174da63ed7f26be6189b9f719fe12e7f756
---
checks/cisco_cpu | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/cisco_cpu b/checks/cisco_cpu
index 0eea5af..a911b70 100644
--- a/checks/cisco_cpu
+++ b/checks/cisco_cpu
@@ -31,8 +31,8 @@ cisco_cpu_default_levels = (80.0, 90.0)
def inventory_cisco_cpu(info):
if info and \
- value1 = info[0][0].isdigit() and \
- value2 = info[0][1].isdigit():
+ info[0][0].isdigit() and \
+ info[0][1].isdigit():
return [( None, 'cisco_cpu_default_levels') ]
def check_cisco_cpu(item, params, info):