Module: check_mk
Branch: master
Commit: 59813d7f216b882a9208fe8905ef92439de2b401
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=59813d7f216b88…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri May 18 10:23:58 2018 +0200
6082 FIX aix_hacmp_services: Fixed parsing data; If a subsystem is in
'inoperative' status no PID is reported
Change-Id: Ibfe0ed0788b3d58d4455e7e1bbaeef33f950e21c
---
.werks/6082 | 10 ++++++++++
checks/aix_hacmp_services | 4 +---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/.werks/6082 b/.werks/6082
new file mode 100644
index 0000000..a09babb
--- /dev/null
+++ b/.werks/6082
@@ -0,0 +1,10 @@
+Title: aix_hacmp_services: Fixed parsing data; If a subsystem is in 'inoperative'
status no PID is reported
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1526631625
+Class: fix
+
+
diff --git a/checks/aix_hacmp_services b/checks/aix_hacmp_services
index 8379ca3..e5fdfcf 100644
--- a/checks/aix_hacmp_services
+++ b/checks/aix_hacmp_services
@@ -105,9 +105,7 @@ def parse_aix_hacmp_services(info):
if line[0] == 'Subsystem':
parsed.setdefault(subsystem_ty_name, [])
else:
- parsed[subsystem_ty_name].append(
- (line[0], line[3])
- )
+ parsed[subsystem_ty_name].append((line[0], line[-1]))
return parsed