Module: check_mk
Branch: master
Commit: 6b18522601693380412749f42a48612622f01ff8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6b185226016933…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Dec 8 18:04:59 2016 +0100
4111 FIX hp_proliant: fixed empty data handling
---
checks/hp_proliant | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/hp_proliant b/checks/hp_proliant
index 0c17f51..1b03c68 100644
--- a/checks/hp_proliant
+++ b/checks/hp_proliant
@@ -33,7 +33,7 @@ hp_proliant_general_status_map = { 1: 'Unknown', 2:
'Ok', 3: 'Degr
hp_proliant_general_status2nagios_map = { 'Unknown': 3, 'Ok':
0, 'Degraded': 1, 'Failed': 2, }
def inventory_proliant_general(info):
- if len(info) > 0 and len(info[0]) > 1:
+ if len(info) > 0 and len(info[0]) > 1 and info[0][0]:
return [ (None, None) ]
def check_proliant_general(item, no_params, info):