Module: check_mk
Branch: master
Commit: ccdf953bb2dd8527f60ae1018c157982cacb2fe2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ccdf953bb2dd85…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Nov 17 17:35:47 2011 +0100
Automation: set opt_dont_submit on inventory
---
modules/automation.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/automation.py b/modules/automation.py
index c9fbe3a..87eb2d2 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -131,8 +131,9 @@ def automation_inventory(args):
def automation_try_inventory(args):
+ global opt_use_cachefile, opt_no_tcp, opt_dont_submit, \
+ inventory_max_cachefile_age, check_max_cachefile_age
if args[0] == '--cache':
- global opt_use_cachefile, inventory_max_cachefile_age, check_max_cachefile_age
opt_use_cachefile = True
check_max_cachefile_age = 1000000000
inventory_max_cachefile_age = 1000000000
@@ -188,6 +189,8 @@ def automation_try_inventory(args):
infotype = ct.split('.')[0]
opt_use_cachefile = True
opt_no_tcp = True
+ opt_dont_submit = True
+
try:
info = get_host_info(hostname, ipaddress, infotype)
# Handle cases where agent does not output data