Module: check_mk
Branch: master
Commit: c01d9e26466118b33340dc602e799c51b1e0a7b7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c01d9e26466118…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Sep 15 12:02:24 2017 +0200
5282 FIX hpux_tunables: Fixed discovering kernel tunables on HPUX 11.23
Change-Id: I74f446311706932dc9a2434e5e65c1d1d3636079
---
.werks/5282 | 11 +++++++++++
checks/hpux_tunables | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/5282 b/.werks/5282
new file mode 100644
index 0000000..a6d9e6a
--- /dev/null
+++ b/.werks/5282
@@ -0,0 +1,11 @@
+Title: hpux_tunables: Fixed discovering kernel tunables on HPUX 11.23
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1505469533
+
+
diff --git a/checks/hpux_tunables b/checks/hpux_tunables
index baf9a30..d31e3f4 100644
--- a/checks/hpux_tunables
+++ b/checks/hpux_tunables
@@ -67,8 +67,8 @@ hpux_tunables_nkthread_default_levels = (80.0, 85.0)
def parse_hpux_tunables(info):
parsed = {}
for line in info:
- if "Tunable" in line[0]:
- key = line[1]
+ if "Tunable" in line[0] or "Parameter" in line[0]:
+ key = line[1].strip()
elif "Usage" in line[0]:
usage = int(line[1])
elif "Setting" in line[0]: