Module: check_mk
Branch: master
Commit: 938a90015b03c4d4d797736761d9e61434f79c45
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=938a90015b03c4…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Thu Feb 28 15:21:04 2019 +0100
7205 jolokia_jvm_threading: new check for JVM threads
The new check jolokia_jvm_threading is introduced. It creates the services
"JVM <instance> Threading" and optionally "JVM <instance> ThreadPool <pool name>",
replacing the former checks jolokia_metrics.threads and jolokia_metrics.tp.
The new "JVM Threading" check now allows to set rules on the thread count as well as on
the rate at which new threads are created. Additionally levels for the daemon threads
can be configured.
Unlike for the old check 'jolokia_metrics.threads', no default levels are imposed
on the thread count.
Users who had a rule in place for the ThreadCount metric of the old check
need to set up a new rule "JVM threading".
The "JVM ThreadPool" check applies the same rule as the previous check did
(JVM tomcat threadpool levels).
A rediscovery is required for affected hosts.
Change-Id: Ia24f460f198aa36ba66c91bf1b35da7d13ca7568
---
.werks/7205 | 24 +++
agents/plugins/mk_jolokia.py | 53 ++++--
checkman/jolokia_jvm_threading | 22 +++
checkman/jolokia_jvm_threading.pool | 20 +++
checkman/jolokia_metrics.threads | 18 +-
checkman/jolokia_metrics.tp | 16 +-
checks/jolokia_jvm_threading | 143 ++++++++++++++++
checks/jolokia_metrics | 183 ++++-----------------
.../plugins/wato/check_parameters/jvm_threading.py | 78 +++++++++
.../plugins/wato/check_parameters/jvm_threads.py | 4 +
.../datasets/jolokia_jvm_threading_regression.py | 44 +++++
11 files changed, 406 insertions(+), 199 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=938a90015b…
Module: check_mk
Branch: master
Commit: b0072e51244d38293b47e2a4c2bb3406c2990d64
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0072e51244d38…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Feb 25 11:05:08 2019 +0100
6762 FIX zfsget: Aligned behaviour in Solaris and Linux
Previously the implementation of getting zfs information was slightly
different in Linux and Solaris. Now both agents are fetching data only for
volumes and filesystems and are using the quota for computing the total size of
a filesystem or volume. So the information of each service will be more precise.
FEED-3375
Change-Id: I22d5f57c62a028af56b1bdf52b58e119b62f4588
---
.werks/6762 | 13 +++++++++++++
agents/check_mk_agent.linux | 3 +--
agents/check_mk_agent.solaris | 5 +----
3 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/.werks/6762 b/.werks/6762
new file mode 100644
index 0000000..1280d4b
--- /dev/null
+++ b/.werks/6762
@@ -0,0 +1,13 @@
+Title: zfsget: Fixed different behaviour of the plugin in Solaris and Linux
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1551088721
+Class: fix
+
+Previously the implementation of getting zfs information was slightly
+different in Linux and Solaris. Now both agents are fetching data only for
+volumes and filesystems and are using the quota for computing the total size of
+a filesystem or volume. So the information of each service will be more precise.
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 8f1c447..6690f95 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -399,8 +399,7 @@ sections_systemd
# Filesystem usage for ZFS
if type zfs > /dev/null 2>&1 ; then
echo '<<<zfsget>>>'
- zfs get -Hp name,quota,used,avail,mountpoint,type -t filesystem,volume || \
- zfs get -Hp name,quota,used,avail,mountpoint,type
+ zfs get -t filesystem,volume -Hp name,quota,used,avail,mountpoint,type 2>/dev/null
echo '[df]'
df -PTlk -t zfs | sed 1d
fi
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index 002afda..1c5bc66 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -199,10 +199,7 @@ done
if type zfs &>/dev/null
then
echo '<<<zfsget>>>'
- zfs get -Hp name,usedbydataset,avail,mountpoint,type | sed 's/usedbydataset/used/g' 2>/dev/null
- if [ $? -ne 0 ] ; then
- zfs get -Hp name,referenced,avail,mountpoint,type | sed 's/referenced/used/g'
- fi
+ zfs get -t filesystem,volume -Hp name,quota,used,avail,mountpoint,type 2>/dev/null
echo '[df]'
df -l -k -F zfs 2>/dev/null | sed 1d
fi
Module: check_mk
Branch: master
Commit: fe8e667f9813fb2f5ad915862f575a5807a3059a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fe8e667f9813fb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 27 19:53:27 2019 +0100
Start moving view logic into dedicated object
The goal is to restructure the view processing logic classes
that separate the logic and make the whole view rendering
easier to understand.
First steps: Move logic from page_view() and show_view() to
the new View() class to be able to clean up some hacks related
to availability and SLA processing.
Change-Id: Ic1da2b56dd361cce33f1a02d867c2681d4a0f197
---
cmk/gui/views.py | 148 +++++++++++++++++++++------------------
tests/unit/cmk/gui/test_views.py | 37 +++++++---
2 files changed, 105 insertions(+), 80 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=fe8e667f98…
Module: check_mk
Branch: master
Commit: e5b3d27fd7c2dc72a77e9938272b6b4e4af03e92
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e5b3d27fd7c2dc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sun Mar 3 19:27:25 2019 +0100
Move individual view rendering to specific classes
* View rendering is done by ViewRenderer() sub classes in the future
* Initially moved the main render functions to GUIViewRenderer,
MobileViewRenderer and ReportViewRenderer classses
* These classes will be populated step by step now
Change-Id: Ia3ecdb8f10a180b01da8a93ec2947ada98cebd94
---
cmk/gui/mobile.py | 147 ++++++++--------
cmk/gui/plugins/dashboard/view.py | 4 +-
cmk/gui/views.py | 360 ++++++++++++++++++++------------------
3 files changed, 262 insertions(+), 249 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=e5b3d27fd7…