Module: check_mk
Branch: master
Commit: 8056df66e594b3f9383c854c4b7dfb586030d786
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8056df66e594b3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 16 11:04:51 2017 +0100
Linux/Solaris agent: avoid potential name clash with cache files of MRPE
MRPE cache files are now prefixed with mrpe_. Previously
you could name a mrpe check for example omd_status and would
than use the same cache file as the normal section omd_status.
Change-Id: I1e86fbcfd433ed8615b6b2bcb033fb8fa7f57031
---
agents/check_mk_agent.linux | 6 +++++-
agents/check_mk_agent.solaris | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index dfde4ba..4d261ab 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -143,7 +143,11 @@ function run_cached () {
local CMDLINE="$section$@"
if [ ! -d $MK_VARDIR/cache ]; then mkdir -p $MK_VARDIR/cache ; fi
- CACHEFILE="$MK_VARDIR/cache/$NAME.cache"
+ if [ "$mrpe" = 1 ] ; then
+ CACHEFILE="$MK_VARDIR/cache/mrpe_$NAME.cache"
+ else
+ CACHEFILE="$MK_VARDIR/cache/$NAME.cache"
+ fi
# Check if the creation of the cache takes suspiciously long and kill the
# process if the age (access time) of $CACHEFILE.new is twice the MAXAGE.
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index 77c1aa7..250d40f 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -84,7 +84,11 @@ function run_cached () {
local CMDLINE="$section$@"
if [ ! -d $MK_VARDIR/cache ]; then mkdir -p $MK_VARDIR/cache ; fi
- CACHEFILE="$MK_VARDIR/cache/$NAME.cache"
+ if [ "$mrpe" = 1 ] ; then
+ CACHEFILE="$MK_VARDIR/cache/mrpe_$NAME.cache"
+ else
+ CACHEFILE="$MK_VARDIR/cache/$NAME.cache"
+ fi
# Check if the creation of the cache takes suspiciously long and return
# nothing if the age (access time) of $CACHEFILE.new is twice the MAXAGE
Module: check_mk
Branch: master
Commit: ce1bd39ce3238777390bc8c41edb0779cbc11868
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ce1bd39ce32387…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 16 09:21:55 2017 +0100
werks in announcement mails: dont show the version
Change-Id: I20bb31855afb598f160630fe489105e86c1ce21d
---
lib/werks.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/werks.py b/lib/werks.py
index b4ea681..cb2d201 100644
--- a/lib/werks.py
+++ b/lib/werks.py
@@ -182,7 +182,7 @@ def write_precompiled_werks(path, werks):
# Writhe the given werks to a file object. This is used for creating a textual
# change log for the released versions and the announcement mails
-def write_as_text(werks, f):
+def write_as_text(werks, f, write_version=True):
version, component = None, None
for werk in sort_by_version_and_component(werks.values()):
if version != werk["version"]:
@@ -191,7 +191,8 @@ def write_as_text(werks, f):
version, component = werk["version"], None
- f.write("%s:\n" % werk["version"])
+ if write_version:
+ f.write("%s:\n" % werk["version"])
if component != werk["component"]:
if component is not None:
Module: check_mk
Branch: master
Commit: 6b74f27b540916f5bbd27c67aa4e78af284b072c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6b74f27b540916…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 16 09:11:44 2017 +0100
Updated bug entries #2420, #2324, #2425
Change-Id: I0451038c390c028711947014aff3e720ee58e93d
---
.bugs/2324 | 10 ++++++++--
.bugs/2420 | 2 +-
.bugs/2425 | 4 ++--
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/.bugs/2324 b/.bugs/2324
index c0da0d9..60a15db 100644
--- a/.bugs/2324
+++ b/.bugs/2324
@@ -1,9 +1,9 @@
Title: Generalize file IO handling and catch various issues in a general way
Component: core
-State: open
+Class: bug
+State: done
Date: 2015-12-02 16:18:27
Targetversion: future
-Class: bug
Some general errors like:
@@ -45,3 +45,9 @@ But how? If the disk is full various other things will also crash. No state
files can be written. Funny things can happen. Maybe the safest way would
be to immediately shut down the core if there is no space left. Can we actively
watch that and if the free space falls below X MB we stop the core?
+
+2017-02-15 17:14:16: changed state open -> done
+This is now handled (at least for the files written by the python code) via the cmk.store
+functions which works nice. We are first writing to a temporary file. When this fails,
+e.g. because of not enough space, the original file is not affected and the user sees
+an error message.
diff --git a/.bugs/2420 b/.bugs/2420
index ba174fe..aa9179f 100644
--- a/.bugs/2420
+++ b/.bugs/2420
@@ -2,7 +2,7 @@ Title: Renaming hosts can lead to duplicate host names
Component: wato
State: open
Date: 2016-02-10 12:12:50
-Targetversion: future
+Targetversion: 1.4.0
Class: bug
You have host A in folder F and host B in folder G. Now you can rename
diff --git a/.bugs/2425 b/.bugs/2425
index de6f274..0955eb6 100644
--- a/.bugs/2425
+++ b/.bugs/2425
@@ -2,8 +2,8 @@ Title: Permissions for views and dashboards inconsistent
Component: multisite
State: open
Date: 2016-03-01 09:58:31
-Targetversion: 1.2.9
-Class: bug
+Targetversion: 1.5.0
+Class: nastiness
1. Views und Dashboards:
In beiden Fällen gibt es die Option, dass Ansicht oder Gesamtübersicht