From d087cea869369189b66b3577a60624ae53687242 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 10 Nov 2020 11:32:59 +0100 Subject: [PATCH] bundles/gitea: add monitoring --- bundles/gitea/metadata.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bundles/gitea/metadata.py b/bundles/gitea/metadata.py index 5df732d..a5f66e1 100644 --- a/bundles/gitea/metadata.py +++ b/bundles/gitea/metadata.py @@ -17,6 +17,15 @@ defaults = { 'oauth_secret_key': repo.vault.password_for('{} gitea oauth_secret_key'.format(node.name)), 'internal_token': repo.vault.password_for('{} gitea internal_token'.format(node.name)), }, + 'icinga2_api': { + 'gitea': { + 'services': { + 'GITEA PROCESS': { + 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit gitea', + }, + }, + }, + }, 'postgresql': { 'users': { 'gitea': { @@ -46,6 +55,8 @@ def nginx(metadata): 'target': 'http://127.0.0.1:22000', }, }, + 'website_check_path': '/user/login', + 'website_check_string': 'Sign In', }, }, },