Module: check_mk
Branch: master
Commit: f37145e2dc88f8faff05dfe646f99a5e9bdc0247
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f37145e2dc88f8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Aug 11 09:23:54 2015 +0200
#2492 FIX check_mk_agent.linux: avoid problems with crashing waitmax after Ubuntu update
Some users have reported that after an update of their Ubuntu target hosts, the command
<tt>/usr/bin/waitmax</tt>, which is shipped with the Check_MK Agent, actually segfaults
the program being run with it. This could be related to the fact that <tt>waitmax</tt>
is statically linked in order to be independent of 32/64 bits and of the libc in use.
The agent now looks if <tt>/usr/bin/timeout</tt> exists and prefers that over <tt>waitmax</tt>.
<tt>timeout</tt> has been introduced in the coreutils version 8+. It is missing e.g.
on RedHat 5.X, so <tt>waitmax</tt> is still needed for a couple of years...
---
.werks/2492 | 16 ++++++++++++++++
ChangeLog | 1 +
agents/check_mk_agent.linux | 13 +++++++++++--
3 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/.werks/2492 b/.werks/2492
new file mode 100644
index 0000000..aed5b51
--- /dev/null
+++ b/.werks/2492
@@ -0,0 +1,16 @@
+Title: check_mk_agent.linux: avoid problems with crashing waitmax after Ubuntu update
+Level: 2
+Component: checks
+Compatible: compat
+Version: 1.2.7i3
+Date: 1439277549
+Class: fix
+
+Some users have reported that after an update of their Ubuntu target hosts, the command
+<tt>/usr/bin/waitmax</tt>, which is shipped with the Check_MK Agent, actually segfaults
+the program being run with it. This could be related to the fact that <tt>waitmax</tt>
+is statically linked in order to be independent of 32/64 bits and of the libc in use.
+
+The agent now looks if <tt>/usr/bin/timeout</tt> exists and prefers that over <tt>waitmax</tt>.
+<tt>timeout</tt> has been introduced in the coreutils version 8+. It is missing e.g.
+on RedHat 5.X, so <tt>waitmax</tt> is still needed for a couple of years...
diff --git a/ChangeLog b/ChangeLog
index 9beb2d7..7364270 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -110,6 +110,7 @@
* 2504 FIX: cups_queues: Fixed wrong queue discovery on hosts running apcupsd
* 2506 FIX: Diskstat summary: Ignoring stats from LVM devices
* 2455 FIX: raritan_pdu_inlet: Fixed scaling...
+ * 2492 FIX: check_mk_agent.linux: avoid problems with crashing waitmax after Ubuntu update...
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce unhandled exceptions...
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 8302fb4..3889213 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -64,6 +64,17 @@ else
exec </dev/null 2>/dev/null
fi
+# Prefer (relatively) new /usr/bin/timeout from coreutils against
+# our shipped waitmax. waitmax is statically linked and crashes on
+# some Ubuntu versions recently.
+if type timeout >/dev/null 2>&1 ; then
+ function waitmax () {
+ timeout "$@"
+ }
+ export -f waitmax
+fi
+
+
# Runs a command asynchronous by use of a cache file. Usage:
# run_cached [-s] NAME MAXAGE
# -s creates the section header <<<$NAME>>>
@@ -254,8 +265,6 @@ fi
# Number of TCP connections in the various states
echo '<<<tcp_conn_stats>>>'
-# waitmax 10 netstat -nt | awk ' /^tcp/ { c[$6]++; } END { for (x in c) { print x, c[x]; } }'
-# New implementation: netstat is very slow for large TCP tables
cat /proc/net/tcp /proc/net/tcp6 2>/dev/null | awk ' /:/ { c[$4]++; } END { for (x in c) { print x, c[x]; } }'
# Linux Multipathing
Module: check_mk
Branch: master
Commit: a2137d7d9cae4dd636911683a203b558180683d3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a2137d7d9cae4d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 11 09:06:07 2015 +0200
Made discovery of bosch cameras a bit more specific (fix discovery on cisco devices)
---
checks/bvip.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/bvip.include b/checks/bvip.include
index c8e3c4b..1d5b705 100644
--- a/checks/bvip.include
+++ b/checks/bvip.include
@@ -26,7 +26,7 @@
def bvip_scan_function(oid):
sysinfo = oid(".1.3.6.1.2.1.1.1.0")
- for what in ["FLEXIDOME", "VIP", 'DINION', 'AUTODOME']:
+ for what in ["FLEXIDOME", "VIP-X", 'DINION', 'AUTODOME']:
if what in sysinfo.upper():
return True
return False
Module: check_mk
Branch: master
Commit: f90f9053f0871814ffdeff8673ef89de8fae4150
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f90f9053f08718…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Aug 10 15:41:00 2015 +0200
Updated bug entries #0852
---
.bugs/852 | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.bugs/852 b/.bugs/852
new file mode 100644
index 0000000..ee5561c
--- /dev/null
+++ b/.bugs/852
@@ -0,0 +1,8 @@
+Title: It is not possible to delete the "Status Host" in "Edit site connection"
+Component: wato
+State: open
+Date: 2015-08-10 15:39:15
+Targetversion: 1.2.6
+Class: bug
+
+In Wato -> Distributed Monitoring -> Edit site conenction it is not possible to delete a statushost later