diff --git a/bundles/gitea/metadata.py b/bundles/gitea/metadata.py index 7a69b32..2b9bcbe 100644 --- a/bundles/gitea/metadata.py +++ b/bundles/gitea/metadata.py @@ -26,6 +26,11 @@ defaults = { 'FORGEJO PROCESS': { 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit gitea', }, + 'FORGEJO UPDATE': { + 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_forgejo_for_new_release codeberg.org forgejo/forgejo v$(gitea --version | cut -d" " -f3)', + 'vars.notification.mail': True, + 'check_interval': '60m', + }, }, }, }, @@ -99,15 +104,4 @@ def nginx(metadata): ) def icinga_check_for_new_release(metadata): return { - 'icinga2_api': { - 'gitea': { - 'services': { - 'FORGEJO UPDATE': { - 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_forgejo_for_new_release codeberg.org forgejo/forgejo v{}'.format(metadata.get('gitea/version')), - 'vars.notification.mail': True, - 'check_interval': '60m', - }, - }, - }, - }, }