Module: check_mk
Branch: master
Commit: 9343a5fea42926918f2ddd84667d99e0c10b5273
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9343a5fea42926…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Jul 2 09:49:07 2014 +0200
FIX mk_inventory.ps1: increased caching time to 14400, fixed incorrect default cachefile
path
---
.werks/948 | 9 +++++++++
ChangeLog | 1 +
agents/windows/plugins/mk_inventory.ps1 | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/948 b/.werks/948
new file mode 100644
index 0000000..8c68221
--- /dev/null
+++ b/.werks/948
@@ -0,0 +1,9 @@
+Title: mk_inventory.ps1: increased caching time to 14400, fixed incorrect default
cachefile path
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i5
+Date: 1404287307
+
+
diff --git a/ChangeLog b/ChangeLog
index 5bfe9ed..81f7bad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@
* 0996 FIX: apc_symmetra_test: Handle unknown date of last self test as intended...
* 0173 FIX: hitachi_hnas_volume: Fixed bug when snmp outputs empty lines
* 1037 FIX: bintec_info: support bintec RXL12500
+ * 0948 FIX: mk_inventory.ps1: increased caching time to 14400, fixed incorrect
default cachefile path
Multisite:
* 1013 Sort host names naturally, e.g. foobar11 comes after foobar2...
diff --git a/agents/windows/plugins/mk_inventory.ps1
b/agents/windows/plugins/mk_inventory.ps1
index 9bcfb8e..4e98d8f 100644
--- a/agents/windows/plugins/mk_inventory.ps1
+++ b/agents/windows/plugins/mk_inventory.ps1
@@ -2,9 +2,9 @@ $name = (Get-Item env:\Computername).Value
$separator = "|"
# filename for timestamp
$remote_host = $env:REMOTE_HOST
-$timestamp = "c:\Program Files (x86)\Check_mk\timestamp.$remote_host"
+$timestamp = "c:\Program Files (x86)\check_mk\timestamp.$remote_host"
# execute agent only every $delay seconds
-$delay = 1
+$delay = 14400
# does $timestamp exist?
If (Test-Path $timestamp){