Module: check_mk
Branch: master
Commit: 618d0b1294d7787f3d9dce9b4063d88d8787c8d5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=618d0b1294d778…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Nov 14 15:01:31 2014 +0100
liveproxyd: create inventory dir if it does not exist
---
doc/treasures/liveproxy/liveproxyd | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/treasures/liveproxy/liveproxyd b/doc/treasures/liveproxy/liveproxyd
index 4f6d6f4..afc4ff6 100755
--- a/doc/treasures/liveproxy/liveproxyd
+++ b/doc/treasures/liveproxy/liveproxyd
@@ -716,6 +716,9 @@ def check_inventory_update(mk_inventory_last, sitename):
if not opt_inventory_dir:
return # only works if this is set
+ if not os.path.exists(opt_inventory_dir):
+ os.makedirs(opt_inventory_dir)
+
sitestatus = g_sites[sitename]
if sitestatus["inventory_pid"]:
return # Sync already running