icinga2: enable mails for update checks
This commit is contained in:
parent
9850a27ee2
commit
febcacdfe3
3 changed files with 3 additions and 0 deletions
|
@ -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',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue