From 0687c83543da29f86e94c46fb3fe872ab19cb709 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 11 Dec 2014 22:26:28 +0100 Subject: Increase max_check_attempts for hosts checks (Bug #6535) Change-Id: I10ec569821f329e3bd10ac87242db102e9c82246 --- puppet/modules/site_check_mk/files/extra_host_conf.mk | 6 ++++++ puppet/modules/site_check_mk/manifests/server.pp | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 puppet/modules/site_check_mk/files/extra_host_conf.mk 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, -- cgit v1.2.3