diff --git a/templates/templates.cfg.j2 b/templates/templates.cfg.j2 index 8bdcc12d315123c550e2572192ce185ad74e887e..567c1747515af76196c60b18af533a964a0c6958 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 10faab5edfdf68a56f1a1a127f730353d71ec031..59a0e93c7c570e78c234b66c3786c8bd68e71901 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