Module: check_mk
Branch: master
Commit: f4ed0bd2e5d9edb3987409d56f0727cb4f4d9e57
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f4ed0bd2e5d9ed…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 15 14:12:04 2010 +0100
Linux agent: fixed problem with OnlyFrom and section <<<df>>>
---
ChangeLog | 3 +++
agents/check_mk_agent.linux | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 88eafe9..d2adf2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
OMD users put the icons into ~/local/share/check_mk/web/htdocs/images/icons.
* fix problem with PNP-links with services containing a ':' (thanks to Dirk
Mayer)
+ Checks & Agents:
+ * Fixed problem with OnlyFrom: in Linux agent (df didn't work properly)
+
1.1.9i2:
Checks & Agents:
* ibm_imm_health: fix inventory function
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 297d751..e7ec806 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -63,7 +63,7 @@ echo AgentDirectory: $MK_CONFDIR
if [ -n "$REMOTE_HOST" ]
then
echo -n 'OnlyFrom: '
- sed -n
'/^service[[:space:]]*check_mk/,/}/s/^[[:space:]]*only_from[[:space:]]*=[[:space:]]*\(.*\)/\1/p'
/etc/xinetd.d/* | head -n1
+ echo $(sed -n
'/^service[[:space:]]*check_mk/,/}/s/^[[:space:]]*only_from[[:space:]]*=[[:space:]]*\(.*\)/\1/p'
/etc/xinetd.d/* | head -n1)
fi
# Partitionen (-P verhindert Zeilenumbruch bei langen Mountpunkten)