Module: check_mk
Branch: master
Commit: 28fb71ed69fee3177df9248b10f040ab9d9b415a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=28fb71ed69fee3…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Nov 23 10:54:18 2017 +0100
Renamed Config to GlobalConfig.
The trigger for this renaming was a quite questionable change in
clang-format, see https://reviews.llvm.org/D33932. With that change, header
matching is always case-insensitive now, and there is no flag or option to
get the old behavior back. Due to this, our "config.h" and "Config.h"
headers were considered the same during formatting, which is wrong. :-/
Instead of fighting against an extremely useful tool, we simply rename the
class and files in question to the arguably better name "GlobalConfig".
Change-Id: I737a67c560a30a06c7d0bcea1cf82c439fcadc3a
---
livestatus/src/Store.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/livestatus/src/Store.h b/livestatus/src/Store.h
index 9789470..4bf2881 100644
--- a/livestatus/src/Store.h
+++ b/livestatus/src/Store.h
@@ -64,7 +64,7 @@ class Table;
#ifdef CMC
#include <cstdint>
#include "TableCachedStatehist.h"
-class Config;
+class GlobalConfig;
class Object;
#else
#include <mutex>
@@ -147,7 +147,7 @@ private:
void addTable(Table *table);
Table *findTable(const std::string &name);
#ifdef CMC
- const Config *config() const;
+ const GlobalConfig *config() const;
uint32_t horizon() const;
#else
void logRequest(const std::string &line,
Module: check_mk
Branch: master
Commit: f8cb078bcd612b08f69199db8c9a6f94bdb73156
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f8cb078bcd612b…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Nov 23 11:47:50 2017 +0100
5549 FIX mk_oracle.ps1: Fixed scattered information for configuration
Information about the correct configuration of the oracle plugin for windows
has been scattered around serveral places in Check_MK. As for now all needed
information is available in the script itself.
Change-Id: I9f10b91b6028da5b35704fdd20235b2b126ff914
---
.werks/5549 | 12 ++++++++++++
agents/windows/plugins/mk_oracle.ps1 | 12 ++++++++++++
2 files changed, 24 insertions(+)
diff --git a/.werks/5549 b/.werks/5549
new file mode 100644
index 0000000..aa5c97c
--- /dev/null
+++ b/.werks/5549
@@ -0,0 +1,12 @@
+Title: mk_oracle.ps1: Fixed scattered information for configuration
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i2
+Date: 1511433928
+Class: fix
+
+Information about the correct configuration of the oracle plugin for windows
+has been scattered around serveral places in Check_MK. As for now all needed
+information is available in the script itself.
diff --git a/agents/windows/plugins/mk_oracle.ps1 b/agents/windows/plugins/mk_oracle.ps1
index 2fa230f..078e643 100644
--- a/agents/windows/plugins/mk_oracle.ps1
+++ b/agents/windows/plugins/mk_oracle.ps1
@@ -55,6 +55,18 @@
# | The user can override and set variables in mk_oracle_cfg.ps1 |
# '----------------------------------------------------------------------'
+# Example configuration for ORACLE plugin for Windows
+# Set the ORACLE_HOME if we have more than one oracle home on the server
+# then we can generate the PATH based on that. Note that the tnsnames.ora
+# must then be in %ORACLE_HOME%\network\admin, or use the the environment
+# variable %TBS_ADMIN% to set to another directory.
+# $ORACLE_HOME="C:\oracle\product\12.1.0.1"
+
+# $DBUSER=@("sys", "Secret12", "SYSDBA", "localhost", "1521")
+# $DBUSER_tst=@("sys", "Secret12", "SYSDBA", "localhost", "1521")
+# $DBUSER_orcl=@("sys", "Secret12", "SYSDBA", "localhost", "1521")
+# $DBUSER_orcl=@("sys", "Secret12", "SYSDBA", "localhost", "1521")
+# $ASMUSER=@("user", "password", "SYSDBA/SYSASM", "hostname", "port")
# what should happen when an error occurs? SilentlyContinue, Continue, Stop, and Inquire
Module: check_mk
Branch: master
Commit: 50dbfd5d08f38bed159a001480c2c9b9c3ed83fc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=50dbfd5d08f38b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 22 15:56:27 2017 +0100
5538 Improved performance when processing a large amount of piggyback data
When Check_MK needs to handle a large amount of piggyback data (a lot of piggbacked
hosts from a lot of piggyback source hosts, several hundreds to thousands),
the performance of Check_MK could decrease during regular monitoring. This was caused
by some too expensive house keeping logic that was executed too often.
The mechanism has now been changed to work like this:
<ul>
<li>During regular monitoring now piggyback data is removed anymore from the disk.</li>
<li>New piggyback data is written to disk when communicating with the source host.</li>
<li>When monitoring piggybacked hosts, the outdated piggyback data available on the
disk is filtered.</li>
<li>There is a dedicated housekeeping cron job executed sites crontab daily at 00:10
which removes outdated piggyback data. This job is mostly used to free up some tmpfs
space, the outated stored data is not read by monitoring anymore.</li>
</ul>
Change-Id: I22d9610a00e9200ffc69cfb8c9edf4292d613581
---
.werks/5538 | 25 +++
cmk_base/data_sources/__init__.py | 2 +-
cmk_base/data_sources/abstract.py | 8 +-
cmk_base/data_sources/host_sections.py | 20 +-
cmk_base/modes/check_mk.py | 24 ++-
cmk_base/piggyback.py | 208 ++++++++++++++++-----
.../check_mk/skel/etc/cron.d/cmk_cleanup_piggyback | 2 +
7 files changed, 230 insertions(+), 59 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=50dbfd5d08…