summaryrefslogtreecommitdiff
path: root/manifests/config.pp
diff options
context:
space:
mode:
authorKeith Burdis <keith@burdis.org>2013-02-08 14:39:40 +0000
committerKeith Burdis <keith@burdis.org>2013-02-08 14:39:40 +0000
commit1cb0872bdc363c7f2181908647d25b78a9a1064a (patch)
tree9a0cd243d576ef03d60709791de498fe6a8f6a75 /manifests/config.pp
parent8d8887c4ee333b620bdfb0a4c5888efb88f48493 (diff)
The daily inventory needs to run on the master not the agent hosts.
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp7
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',
+ }
}