summaryrefslogtreecommitdiff
path: root/puppet/modules/site_check_mk
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-12-11 22:26:28 +0100
committervarac <varacanero@zeromail.org>2014-12-11 22:26:28 +0100
commit0687c83543da29f86e94c46fb3fe872ab19cb709 (patch)
tree1bc57f2c61cfbe3e71ccc1469e31f092099dbecb /puppet/modules/site_check_mk
parent354809addebc139b928b14291d6129bfefdcd074 (diff)
Increase max_check_attempts for hosts checks (Bug #6535)
Change-Id: I10ec569821f329e3bd10ac87242db102e9c82246
Diffstat (limited to 'puppet/modules/site_check_mk')
-rw-r--r--puppet/modules/site_check_mk/files/extra_host_conf.mk6
-rw-r--r--puppet/modules/site_check_mk/manifests/server.pp4
2 files changed, 10 insertions, 0 deletions
diff --git a/puppet/modules/site_check_mk/files/extra_host_conf.mk b/puppet/modules/site_check_mk/files/extra_host_conf.mk
new file mode 100644
index 00000000..2c96f97a
--- /dev/null
+++ b/puppet/modules/site_check_mk/files/extra_host_conf.mk
@@ -0,0 +1,6 @@
+# retry 3 times before setting a host into a hard state
+# and send out notification
+extra_host_conf["max_check_attempts"] = [
+ ("4", ALL_HOSTS )
+]
+
diff --git a/puppet/modules/site_check_mk/manifests/server.pp b/puppet/modules/site_check_mk/manifests/server.pp
index 1a866b9c..171f1576 100644
--- a/puppet/modules/site_check_mk/manifests/server.pp
+++ b/puppet/modules/site_check_mk/manifests/server.pp
@@ -53,6 +53,10 @@ class site_check_mk::server {
source => 'puppet:///modules/site_check_mk/extra_service_conf.mk',
notify => Exec['check_mk-refresh'],
require => Package['check-mk-server'];
+ '/etc/check_mk/conf.d/extra_host_conf.mk':
+ source => 'puppet:///modules/site_check_mk/extra_host_conf.mk',
+ notify => Exec['check_mk-refresh'],
+ require => Package['check-mk-server'];
'/etc/check_mk/all_hosts_static':
content => $all_hosts,