From 1cb0872bdc363c7f2181908647d25b78a9a1064a Mon Sep 17 00:00:00 2001 From: Keith Burdis Date: Fri, 8 Feb 2013 14:39:40 +0000 Subject: The daily inventory needs to run on the master not the agent hosts. --- manifests/config.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'manifests') diff --git a/manifests/config.pp b/manifests/config.pp index c25fd1a..36dbb30 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -73,7 +73,7 @@ class check_mk::config ( ensure => "${etc_dir}/check_mk/main.mk.local", order => 99, } - # re-read config + # re-read config if it changes exec { 'check_mk-refresh': command => "${bin_dir}/check_mk -I", refreshonly => true, @@ -83,4 +83,9 @@ class check_mk::config ( command => "${bin_dir}/check_mk -O", refreshonly => true, } + # re-read inventory at least daily + exec { 'check_mk-refresh-inventory-daily': + command => "${bin_dir}/cmk -I", + schedule => 'daily', + } } -- cgit v1.2.3