Module: check_mk
Branch: master
Commit: c373bfbed6fb57e41d20e1fa86e0a07b1d14c822
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c373bfbed6fb57…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Wed May 4 09:29:58 2016 +0200
gitbug 2408
---
.bugs/2408 | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.bugs/2408 b/.bugs/2408
new file mode 100644
index 0000000..8d328ab
--- /dev/null
+++ b/.bugs/2408
@@ -0,0 +1,10 @@
+Title: linux agent: make MK_CONFDIR available to outside tools
+Component: checks
+State: open
+Date: 2016-05-04 09:24:02
+Targetversion: 1.2.9
+Class: bug
+
+Currently, the user can set the MK_CONFDIR through the agent bakery, but this will only
affect the agent itself and the plugins started by it.
+Other tools that require this path, i.e. the cmk_update-agent when run directly (for
registration) will use the fallback path. We need to provide a way for such scripts to use
the correct MK_CONFDIR value.
+One solution could be to change the agent in such a way that it can be
"source"d without executing any of its logic. This way a script can source the
agent to get all the parameters as used by the agent. Alternatively the agent could accept
a parameter "--variables" that make it output such variables and then quit.
Tools would then have to parse that output, but it would be easier to use in non-bash
languages.