From 86b3fb998a53f75b3194722d99f690453a3f9e34 Mon Sep 17 00:00:00 2001 From: mhoellein Date: Wed, 9 Sep 2020 17:31:13 +0200 Subject: [PATCH] daily autocommit --- icinga2/conf.d/apt.conf | 2 +- icinga2/conf.d/templates.conf | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/icinga2/conf.d/apt.conf b/icinga2/conf.d/apt.conf index b2c77a0c1..8efdd7b10 100644 --- a/icinga2/conf.d/apt.conf +++ b/icinga2/conf.d/apt.conf @@ -1,5 +1,5 @@ apply Service "apt" { - import "generic-service" + import "daily-service-check" check_command = "apt" diff --git a/icinga2/conf.d/templates.conf b/icinga2/conf.d/templates.conf index 5655e3f2d..1fa2e38a3 100644 --- a/icinga2/conf.d/templates.conf +++ b/icinga2/conf.d/templates.conf @@ -29,6 +29,18 @@ template Service "generic-service" { retry_interval = 30s } +template Service "weekly-service-check" { + max_check_attempts = 5 + check_interval = 168h + retry_interval = 24h +} + +template Service "daily-service-check" { + max_check_attempts = 5 + check_interval = 24h + retry_interval = 12h +} + /** * Provides default settings for users. By convention * all users should inherit from this template. -- 2.43.0