From 7d4414e016b182c09f24f0bae7b1c1d9531d83e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Wed, 5 Jul 2023 10:50:19 +0200 Subject: [PATCH] [UPD] notification for daily service --- templates/templates.cfg.j2 | 9 +-------- templates/vps.cfg.j2 | 6 +++--- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/templates/templates.cfg.j2 b/templates/templates.cfg.j2 index 8bdcc12..567c174 100644 --- a/templates/templates.cfg.j2 +++ b/templates/templates.cfg.j2 @@ -204,6 +204,7 @@ define service{ check_interval 120 retry_interval 5 notification_interval 1440 + notification_period 24x7 register 0 } @@ -219,14 +220,6 @@ define service{ register 0 } -# Everytine notification service. -define service{ - name everytime-notification - use generic-service - notification_period 24x7 - register 0 - } - # Graph service definition template - This is NOT a real service, just a template! define service { diff --git a/templates/vps.cfg.j2 b/templates/vps.cfg.j2 index 10faab5..59a0e93 100644 --- a/templates/vps.cfg.j2 +++ b/templates/vps.cfg.j2 @@ -106,21 +106,21 @@ define service{ {% endif %} {% endfor %} define service{ - use daily-service,everytime-notification + use daily-service host_name {{ groups['backup_server'] | map('extract', hostvars, ['inventory_hostname']) | sort | join(',') }} service_description Backup Odoo Dockers check_command check_nrpe!check_odoo_storage } define service{ - use daily-service,everytime-notification + use daily-service host_name {{ groups['backup_server'] | map('extract', hostvars, ['inventory_hostname']) | sort | join(',') }} service_description Backup2 Odoo Dockers check_command check_nrpe!check_odoo2_storage } define service{ - use daily-service,everytime-notification,graphed-service + use daily-service host_name {{ groups['backup_server'] | map('extract', hostvars, ['inventory_hostname']) | sort | join(',') }} service_description Backup Cloud Files check_command check_nrpe!check_cloud_storage -- GitLab