Module: check_mk
Branch: master
Commit: 23072920c046f585fb14cec5839e36cf840b5962
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=23072920c046f5…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Fri Feb 22 09:17:33 2019 +0100
6761 FIX agent_ipmi_sensors: Fixed crash if ipmi driver or bmc key option is used
The special agent crashed if the mentioned options has been used because
a hidden behaviour in python prevented that these options are interpreted
correctly. This bug has been in place, since these options have been
introduced in werk #4108.
FEED-3426
Change-Id: Ie81106507c30d624ada612ebd15c35968818f176
---
.werks/6761 | 13 +++++++++++++
agents/special/agent_ipmi_sensors | 4 ++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/6761 b/.werks/6761
new file mode 100644
index 0000000..a0929cd
--- /dev/null
+++ b/.werks/6761
@@ -0,0 +1,13 @@
+Title: agent_ipmi_sensors: Fixed crash if ipmi driver or bmc key option is used
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1550823224
+Class: fix
+
+The special agent crashed if the mentioned options has been used because
+a hidden behaviour in python prevented that these options are interpreted
+correctly. This bug has been in place, since these options have been
+introduced.
diff --git a/agents/special/agent_ipmi_sensors b/agents/special/agent_ipmi_sensors
index b8a0c53..6860993 100755
--- a/agents/special/agent_ipmi_sensors
+++ b/agents/special/agent_ipmi_sensors
@@ -121,11 +121,11 @@ def agent_ipmi_sensors_main(cmdline_args):
# FreeIPMI options
elif o in ['-D']:
- additional_opts += ["%s %s" % (o, a)]
+ additional_opts += ["%s" % o, "%s" % a]
elif o in ['--driver-type']:
additional_opts += ["%s=%s" % (o, a)]
elif o in ['-k']:
- additional_opts += ["%s %s" % (o, a)]
+ additional_opts += ["%s" % o, "%s" % a]
elif o in ['--quiet-cache']:
additional_opts.append(o)
elif o in ['--sdr-cache-recreate']:
Module: check_mk
Branch: master
Commit: 671bdddf8d5691e6035b2ab0090ff2dfdac8a558
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=671bdddf8d5691…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 22 13:02:22 2019 +0100
run-cxx-linter: Fixed failures because of missing Makefiles
Change-Id: I6c58bc9c635dcb8198dcb1281fae7e535e42b100
---
scripts/run-cxx-linter | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/run-cxx-linter b/scripts/run-cxx-linter
index 4c76662..3a4cdfc 100755
--- a/scripts/run-cxx-linter
+++ b/scripts/run-cxx-linter
@@ -1,8 +1,13 @@
-#! /bin/sh
+#!/bin/bash
set -e
TARGET=$1
PATCHSET_REVISION=$2
+REPO_DIR="$(dirname $(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd))"
+
+# Prevpare Makefiles, otherwise "make compile_commands.json" will fail
+make -C $REPO_DIR config.h
+
# To really compute *only* the files which need checking, we better make sure
# that our project is up-to-date without any further changes first (i.e. target
# "all-am"). Having an up-to-date project file before running a linter is a good