Module: check_mk
Branch: master
Commit: 246e3e02c9128716b47d5af1e906e37b260f4f39
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=246e3e02c91287…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 16 16:02:50 2011 +0100
linux agent - ipmi: Creating directory of cache file if not exists
---
ChangeLog | 4 ++++
agents/check_mk_agent.linux | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0a66111..63b9683 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1.1.13i2
+ Checks & Agents:
+ * linux agent - ipmi: Creating directory of cache file if not exists
+
1.1.13i1:
Multisite:
* New nifty sidebar snapin "Speed-O-Meter"
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 0424c40..595a934 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -187,6 +187,9 @@ if which ipmitool >/dev/null
then
echo '<<<ipmi>>>'
IPMI_FILE=$MK_CONFDIR/ipmitool_sensors.cache
+ if [ ! -d $MK_CONFDIR ]; then
+ mkdir -p $MK_CONFDIR
+ fi
# Do not use cache file after 20 minutes
IPMI_MAXAGE=1200