Module: check_mk
Branch: master
Commit: 906c9a6e207d25ff75e2ce74890bfaaea6fd308f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=906c9a6e207d25…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Feb 10 16:13:51 2014 +0100
FIX check_mk_agent.solaris: removed proc section from statgrab
Querying the proc section with statgrab could lead to bus errors or segmentation faults.
Since the statgrab_proc section wasn't used anyway it has been removed from the
agent.
---
.werks/279 | 9 +++++++++
ChangeLog | 1 +
agents/check_mk_agent.solaris | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/279 b/.werks/279
new file mode 100644
index 0000000..2749d54
--- /dev/null
+++ b/.werks/279
@@ -0,0 +1,9 @@
+Title: check_mk_agent.solaris: removed proc section from statgrab
+Level: 1
+Component: checks
+Version: 1.2.5i1
+Date: 1392045063
+Class: fix
+
+Querying the proc section with statgrab could lead to bus errors or segmentation faults.
+Since the statgrab_proc section wasn't used anyway it has been removed from the
agent.
diff --git a/ChangeLog b/ChangeLog
index 0397135..e6eb693 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -169,6 +169,7 @@
* 0693 FIX: hpux_lvm: avoid problem when alternative vgdisplay is installed...
* 0708 FIX: ntp.time, ntp: avoid DNS lookups in NTP queries and avoid timeouts...
* 0277 FIX: solaris agent: ntp now able to work with ntpd and xntpd...
+ * 0279 FIX: check_mk_agent.solaris: removed proc section from statgrab...
Multisite:
* 0371 Added log class filter to hostsvcevents view
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index f054e29..89dd922 100644
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -141,8 +141,8 @@ sed -e 1d -e 's/ *\([^ ]*\) *\([^ ]*\) *\([^ ]*\) *\([^ ]*\)
*/(\1,\2,\3,\4) /'
# binary:
http://www.opencsw.org/
if type statgrab &>/dev/null
then
- statgrab_vars="const. cpu. disk. general. mem. page. proc. swap. user."
- statgrab_sections="proc cpu disk page"
+ statgrab_vars="const. cpu. disk. general. mem. page. swap. user."
+ statgrab_sections="cpu disk page"
# Only collect net stats in global zone.
if [ "$zonename" == "global" ]