Module: check_mk
Branch: master
Commit: af68d1dcd1e5961eb372b547a9253ce84f1e4d44
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af68d1dcd1e596…
Author: Marcel Schulte <ms(a)mathias-kettner.de>
Date: Wed Dec 14 12:38:36 2016 +0100
4117 FIX HPUX agent: fixed determination of cpu/core information
Previously cpu information for just 1 socket was reported and thus wrong information about
the number of cores where displayed.
This has been fixed now.
Change-Id: I068f5eef1d017fdfa7c1eb6041d3d297290e3b69
---
.werks/4117 | 12 ++++++++++++
ChangeLog | 1 +
agents/check_mk_agent.hpux | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/4117 b/.werks/4117
new file mode 100644
index 0000000..c0eaa22
--- /dev/null
+++ b/.werks/4117
@@ -0,0 +1,12 @@
+Title: HPUX agent: fixed determination of cpu/core information
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i3
+Date: 1481715069
+
+Previously cpu information for just 1 socket was reported and thus wrong information
about the number of cores where displayed.
+
+This has been fixed now.
diff --git a/ChangeLog b/ChangeLog
index 9930fdf..8d2fed0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -71,6 +71,7 @@
* 4179 FIX: oracle_dataguard_stats, oracle_longactivesessions, oracle_rman: fixed
crashes...
* 4180 FIX: fileinfo: Made paths for file grouping compatible for windows...
* 4165 FIX: tsm_stagingpools: fixed node info handling
+ * 4117 FIX: HPUX agent: fixed determination of cpu/core information...
Multisite:
* 4070 Added a painter for the service check period
diff --git a/agents/check_mk_agent.hpux b/agents/check_mk_agent.hpux
index 7aca5ab..c27b210 100755
--- a/agents/check_mk_agent.hpux
+++ b/agents/check_mk_agent.hpux
@@ -70,7 +70,7 @@ UNIX95=yes ps -ef -o user,vsz,pcpu,args | sed -e 1d -e 's/ *\([^
]*\) *\([^ ]*\)
echo '<<<hpux_cpu>>>'
uptime
# machinfo is unsupported addon thus not in $PATH
-/usr/contrib/bin/machinfo | grep 'logical proc'
+/usr/contrib/bin/machinfo | grep -E 'logical proc|core' | tail -1
# Several machine performance counters
echo '<<<hpux_vmstat>>>'