summaryrefslogtreecommitdiff
path: root/puppet/modules/site_check_mk
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-06-22 19:10:24 +0200
committerVarac <varac@leap.se>2017-06-22 19:10:24 +0200
commit1078bffff8a0ac49c566c28f85ef8c9fe14f4e11 (patch)
treebd3d78cccde3125ae50b89a04f045e70d1cfa772 /puppet/modules/site_check_mk
parentab15baa5a1ccf874e930a9273c3ba4ae91403bd3 (diff)
parentf3bafe6b2cb55305bba588fdca4f4e77e3ef2026 (diff)
Merge branch 'delay_apt_hardstate'
Diffstat (limited to 'puppet/modules/site_check_mk')
-rw-r--r--puppet/modules/site_check_mk/files/extra_service_conf.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/puppet/modules/site_check_mk/files/extra_service_conf.mk b/puppet/modules/site_check_mk/files/extra_service_conf.mk
index c7120a96..9212af95 100644
--- a/puppet/modules/site_check_mk/files/extra_service_conf.mk
+++ b/puppet/modules/site_check_mk/files/extra_service_conf.mk
@@ -1,6 +1,9 @@
# retry 3 times before setting a service into a hard state
-# and send out notification
+# Delay a hard state of the APT check for 1 day
+# so unattended_upgrades has time to upgrade packages.
+#
extra_service_conf["max_check_attempts"] = [
+ ("360", ALL_HOSTS , ["APT"] ),
("4", ALL_HOSTS , ALL_SERVICES )
]
@@ -11,4 +14,3 @@ extra_service_conf["max_check_attempts"] = [
extra_service_conf["normal_check_interval"] = [
("4", ALL_HOSTS , "Check_MK" )
]
-