Module: check_mk
Branch: master
Commit: 09daf76e21b9fc85ef7f0051940fbf826443dcc0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=09daf76e21b9fc…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Jul 13 11:19:28 2017 +0200
4972 FIX mk_inventory.aix: Use MK_VARDIR instead of MK_CONFDIR for the state file
Change-Id: Id89c0ea5ca1bdaa08706bd440fb3541ad145977e
---
.werks/4972 | 11 +++++++++++
agents/plugins/mk_inventory.aix | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4972 b/.werks/4972
new file mode 100644
index 0000000..cd4f054
--- /dev/null
+++ b/.werks/4972
@@ -0,0 +1,11 @@
+Title: mk_inventory.aix: Use MK_VARDIR instead of MK_CONFDIR for the state file
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1499937340
+
+
diff --git a/agents/plugins/mk_inventory.aix b/agents/plugins/mk_inventory.aix
index 4852d4c..fb79884 100755
--- a/agents/plugins/mk_inventory.aix
+++ b/agents/plugins/mk_inventory.aix
@@ -26,7 +26,7 @@
# Run and *send* only once every 4 hours
INTERVAL=14400
-FLAGFILE=$MK_CONFDIR/mk_inventory.last.$REMOTE
+FLAGFILE=$MK_VARDIR/mk_inventory.last.$REMOTE
NOW=$(date +%s)
UNTIL=$((NOW + INTERVAL + 600))