diff options
Diffstat (limited to 'manifests/config.pp')
-rw-r--r-- | manifests/config.pp | 7 |
1 files changed, 6 insertions, 1 deletions
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', + } } |