icinga2: enable mails for update checks

This commit is contained in:
Franzi 2020-12-05 09:17:21 +01:00
parent 9850a27ee2
commit febcacdfe3
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 3 additions and 0 deletions

View file

@ -75,6 +75,7 @@ def icinga_check_for_new_release(metadata):
'services': { 'services': {
'GITEA UPDATE': { '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')), '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', 'check_interval': '60m',
}, },
}, },

View file

@ -51,6 +51,7 @@ def icinga_check_for_new_release(metadata):
'services': { 'services': {
'MAUTRIX-TELEGRAM UPDATE': { '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')), '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', 'check_interval': '60m',
}, },
}, },

View file

@ -31,6 +31,7 @@ def icinga(metadata):
'services': { 'services': {
'OCTOPRINT UPDATE': { 'OCTOPRINT UPDATE': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_octoprint_update', 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_octoprint_update',
'vars.notification.mail': True,
'retry_interval': '60m', 'retry_interval': '60m',
}, },
}, },