diff options
author | Micah <micah@riseup.net> | 2014-12-11 21:30:11 +0000 |
---|---|---|
committer | Micah <micah@riseup.net> | 2014-12-11 21:30:11 +0000 |
commit | f5dc9ef60a0dd4d81ed594667cf66a2dc274e4d2 (patch) | |
tree | 1bc57f2c61cfbe3e71ccc1469e31f092099dbecb /puppet | |
parent | 354809addebc139b928b14291d6129bfefdcd074 (diff) | |
parent | 0687c83543da29f86e94c46fb3fe872ab19cb709 (diff) |
Merge branch '6535_increase_max_check_attempts_for_hosts_checks' into 'develop'
6535 increase max check attempts for hosts checks
See merge request !12
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/modules/site_check_mk/files/extra_host_conf.mk | 6 | ||||
-rw-r--r-- | puppet/modules/site_check_mk/manifests/server.pp | 4 |
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, |