Module: check_mk
Branch: master
Commit: 5d527294c092d833c5b667b33ed265b3fa9c898b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5d527294c092d8…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Mon Oct 22 12:24:57 2018 +0200
5515 Allow Configuration of TMPDIR environment variable in the context of Check_MK Agent
It is now possible so set the environment variable TMPDIR in the context of the execution
of the Check_MK Agent. This can be configured within the Agent ruleset "Installation paths
for agent files (Linux, UNIX).
Some agent commands or plugins may follow the environment variable TMPDIR for storage of
temporary files. For some reasons, you might want to adapt this path. Namely, the agent
updater won't work with a "\tmp" dir that is mounted with a "noexec"-flag. Please note
that the Check_MK Agent does no automatic cleaning on this custom path.
(Jira: FEED-3010)
Change-Id: I80b5fb36dda16a2c4d6e48a8f307bdfabae37cec
---
.werks/5515 | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/.werks/5515 b/.werks/5515
new file mode 100644
index 0000000..0c3a5de
--- /dev/null
+++ b/.werks/5515
@@ -0,0 +1,19 @@
+Title: Allow Configuration of TMPDIR environment variable in the context of Check_MK Agent
+Level: 1
+Component: agents
+Class: feature
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1540199339
+
+It is now possible so set the environment variable TMPDIR in the context of the execution
+of the Check_MK Agent. This can be configured within the Agent ruleset "Installation paths
+for agent files (Linux, UNIX).
+
+
+Some agent commands or plugins may follow the environment variable TMPDIR for storage of
+temporary files. For some reasons, you might want to adapt this path. Namely, the agent
+updater won't work with a "\tmp" dir that is mounted with a "noexec"-flag. Please note
+that the Check_MK Agent does no automatic cleaning on this custom path.
Module: check_mk
Branch: master
Commit: 60cedcd76b9c40649afec54d307a0f1c60704488
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=60cedcd76b9c40…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Tue Oct 23 08:58:04 2018 +0200
FEED-3010: Add tempdir config to agent installation paths rule
The environment variable TEMPDIR can now be set for agent execution
within the ruleset "Installation paths for agent".
The env var will also be set for the start-script of cmk-update-agent
located at /usr/bin. The main reason for this config entry is that
the user can workaround issues with running cmk-update-agent with
the /tmp directory mounted using a noexec-flag.
Change-Id: Iea2f4727b32303e66ed90b382b5b90f43689cda8
---
agents/check_mk_agent.aix | 3 +++
agents/check_mk_agent.freebsd | 2 ++
agents/check_mk_agent.hpux | 3 +++
agents/check_mk_agent.linux | 3 +++
agents/check_mk_agent.macosx | 3 +++
agents/check_mk_agent.netbsd | 3 +++
agents/check_mk_agent.openbsd | 3 +++
agents/check_mk_agent.openwrt | 3 +++
agents/check_mk_agent.solaris | 3 +++
9 files changed, 26 insertions(+)
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 810060f..e067df4 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -38,6 +38,9 @@ export MK_LIBDIR=${MK_LIBDIR:-/usr/check_mk/lib}
export MK_CONFDIR=${MK_CONFDIR:-/usr/check_mk/conf}
export MK_VARDIR=${MK_VARDIR:-/tmp/check_mk}
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
+
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own
# sections and must output headers with '<<<' and '>>>'
diff --git a/agents/check_mk_agent.freebsd b/agents/check_mk_agent.freebsd
index 33e3d8d..e097643 100755
--- a/agents/check_mk_agent.freebsd
+++ b/agents/check_mk_agent.freebsd
@@ -45,6 +45,8 @@ export MK_LIBDIR="/usr/local/lib/check_mk_agent"
export MK_CONFDIR="/etc/check_mk"
export MK_TMPDIR="/var/run/check_mk"
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
# Make sure, locally installed binaries are found
PATH=$PATH:/usr/local/bin:/usr/local/sbin
diff --git a/agents/check_mk_agent.hpux b/agents/check_mk_agent.hpux
index 4fe3ddd..c364db5 100755
--- a/agents/check_mk_agent.hpux
+++ b/agents/check_mk_agent.hpux
@@ -29,6 +29,9 @@ export PATH=$PATH:/usr/sbin:/usr/bin:/usr/contrib/bin
export MK_LIBDIR="/usr/lib/check_mk_agent"
export MK_CONFDIR="/etc/check_mk"
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
+
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own
# sections and must output headers with '<<<' and '>>>'
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 13ee884..d8d92f8 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -32,6 +32,9 @@ export MK_LIBDIR=${MK_LIBDIR:-/usr/lib/check_mk_agent}
export MK_CONFDIR=${MK_CONFDIR:-/etc/check_mk}
export MK_VARDIR=${MK_VARDIR:-/var/lib/check_mk_agent}
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
+
# Provide information about the remote host. That helps when data
# is being sent only once to each remote host.
if [ "$REMOTE_HOST" ] ; then
diff --git a/agents/check_mk_agent.macosx b/agents/check_mk_agent.macosx
index 95e5580..20bcfcc 100755
--- a/agents/check_mk_agent.macosx
+++ b/agents/check_mk_agent.macosx
@@ -34,6 +34,9 @@ unset LANG
export MK_LIBDIR="/to/be/changed"
export MK_CONFDIR="/to/be/changed"
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
+
# close standard input (for security reasons) and stderr
if [ "$1" = -d ]
then
diff --git a/agents/check_mk_agent.netbsd b/agents/check_mk_agent.netbsd
index bf60f7c..25b3b36 100755
--- a/agents/check_mk_agent.netbsd
+++ b/agents/check_mk_agent.netbsd
@@ -37,6 +37,9 @@ unset LANG
export MK_LIBDIR="/change/me/"
export MK_CONFDIR="/change/me"
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
+
# Make sure, locally installed binaries are found
PATH=$PATH:/usr/pkg/bin
diff --git a/agents/check_mk_agent.openbsd b/agents/check_mk_agent.openbsd
index b8263c5..945ff5a 100755
--- a/agents/check_mk_agent.openbsd
+++ b/agents/check_mk_agent.openbsd
@@ -37,6 +37,9 @@ unset LANG
export MK_LIBDIR="/usr/lib/check_mk_agent"
export MK_CONFDIR="/etc"
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
+
# Make sure, locally installed binaries are found
PATH=$PATH:/usr/local/bin
diff --git a/agents/check_mk_agent.openwrt b/agents/check_mk_agent.openwrt
index 8bba808..331b93c 100755
--- a/agents/check_mk_agent.openwrt
+++ b/agents/check_mk_agent.openwrt
@@ -32,6 +32,9 @@ export MK_LIBDIR="/usr/lib/check_mk_agent"
export MK_CONFDIR="/etc/check_mk"
export MK_VARDIR="/var/lib/check_mk_agent"
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
+
# Provide information about the remote host. That helps when data
# is being sent only once to each remote host.
if [ "$REMOTE_HOST" ] ; then
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index 53062c5..5810ee2 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -32,6 +32,9 @@ export MK_LIBDIR=${MK_LIBDIR:-/usr/lib/check_mk_agent}
export MK_CONFDIR=${MK_CONFDIR:-/etc/check_mk}
export MK_VARDIR=${MK_VARDIR:-/var/lib/check_mk_agent}
+# Optionally set a tempdir for all subsequent calls
+#export TMPDIR=
+
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own
# sections and must output headers with '<<<' and '>>>'
Module: check_mk
Branch: master
Commit: 7d54a2b121d64a17cf2815442f71e6ebe9344419
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7d54a2b121d64a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sat Oct 20 19:23:00 2018 +0200
6844 FIX mknotifyd: Fixed parse exception when failed to open listen socket
When a mknotifyd instance fails to open it's listen socket the parse
function of the check was unable to process the agent output of the
mknotifyd. This resulted in a crash, e.g. during service discovery.
Change-Id: I194ae70a2f7914750e9e96cb4a25c2c19e93f9eb
---
.werks/6844 | 13 +++++++++++++
checks/mknotifyd | 6 ++++++
2 files changed, 19 insertions(+)
diff --git a/.werks/6844 b/.werks/6844
new file mode 100644
index 0000000..5f72064
--- /dev/null
+++ b/.werks/6844
@@ -0,0 +1,13 @@
+Title: mknotifyd: Fixed parse exception when failed to open listen socket
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1540056102
+
+When a mknotifyd instance fails to open it's listen socket the parse
+function of the check was unable to process the agent output of the
+mknotifyd. This resulted in a crash, e.g. during service discovery.
diff --git a/checks/mknotifyd b/checks/mknotifyd
index 9601903..924462f 100644
--- a/checks/mknotifyd
+++ b/checks/mknotifyd
@@ -87,6 +87,12 @@ def parse_mknotifyd(info):
else:
if value == "None":
value = None
+ elif value and varname == "Listening FD":
+ # May be the listening FD number or an error message
+ try:
+ value = int(value.split()[0])
+ except ValueError:
+ pass
elif value and varname not in [
"Type",
"State",
Module: check_mk
Branch: master
Commit: 4bd5107f0daa00be00ec3b294348f9a100154f0f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4bd5107f0daa00…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Fri Oct 19 12:02:03 2018 +0200
6752 FIX New Theme: Make the reload Button for passive Checks in grayscale again
The icon is in grayscale again for better highlighting, that this service
is passive.
Change-Id: I4788a0a9fce174b7ef6f53c143607cb13b057d3a
---
.werks/6752 | 11 +++++++++++
web/htdocs/themes/facelift/images/icon_reload_cmk.png | Bin 1791 -> 1642 bytes
2 files changed, 11 insertions(+)
diff --git a/.werks/6752 b/.werks/6752
new file mode 100644
index 0000000..e4fd83f
--- /dev/null
+++ b/.werks/6752
@@ -0,0 +1,11 @@
+Title: New Theme: Make the reload Button for passive Checks in grayscale again
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1539943179
+Class: fix
+
+The icon is in grayscale again for better highlighting, that this service
+is passive.
diff --git a/web/htdocs/themes/facelift/images/icon_reload_cmk.png b/web/htdocs/themes/facelift/images/icon_reload_cmk.png
index acae853..d30aebb 100644
Binary files a/web/htdocs/themes/facelift/images/icon_reload_cmk.png and b/web/htdocs/themes/facelift/images/icon_reload_cmk.png differ