From febcacdfe3171615fe7db39e128583a676f1ece8 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 5 Dec 2020 09:17:21 +0100 Subject: [PATCH] icinga2: enable mails for update checks --- bundles/gitea/metadata.py | 1 + bundles/mautrix-telegram/metadata.py | 1 + bundles/octoprint/metadata.py | 1 + 3 files changed, 3 insertions(+) diff --git a/bundles/gitea/metadata.py b/bundles/gitea/metadata.py index 939609f..e7f6a5a 100644 --- a/bundles/gitea/metadata.py +++ b/bundles/gitea/metadata.py @@ -75,6 +75,7 @@ def icinga_check_for_new_release(metadata): 'services': { 'GITEA UPDATE': { 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_github_for_new_release go-gitea/gitea v{}'.format(metadata.get('gitea/version')), + 'vars.notification.mail': True, 'check_interval': '60m', }, }, diff --git a/bundles/mautrix-telegram/metadata.py b/bundles/mautrix-telegram/metadata.py index 5873d80..47c9f6c 100644 --- a/bundles/mautrix-telegram/metadata.py +++ b/bundles/mautrix-telegram/metadata.py @@ -51,6 +51,7 @@ def icinga_check_for_new_release(metadata): 'services': { 'MAUTRIX-TELEGRAM UPDATE': { 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_github_for_new_release tulir/mautrix-telegram {}'.format(metadata.get('mautrix-telegram/version')), + 'vars.notification.mail': True, 'check_interval': '60m', }, }, diff --git a/bundles/octoprint/metadata.py b/bundles/octoprint/metadata.py index 0fa023e..c066a20 100644 --- a/bundles/octoprint/metadata.py +++ b/bundles/octoprint/metadata.py @@ -31,6 +31,7 @@ def icinga(metadata): 'services': { 'OCTOPRINT UPDATE': { 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_octoprint_update', + 'vars.notification.mail': True, 'retry_interval': '60m', }, },