From 2f7f35c85acc743b7efebef0a5294591d12744f0 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 21 Nov 2020 18:55:06 +0100 Subject: [PATCH] bundles/matrix*: add monitoring --- bundles/matrix-synapse/metadata.py | 9 +++++++++ bundles/mautrix-telegram/metadata.py | 9 +++++++++ bundles/mx-puppet-discord/metadata.py | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/bundles/matrix-synapse/metadata.py b/bundles/matrix-synapse/metadata.py index 94013fb..9b643e2 100644 --- a/bundles/matrix-synapse/metadata.py +++ b/bundles/matrix-synapse/metadata.py @@ -16,6 +16,15 @@ defaults = { '/var/lib/matrix-synapse', }, }, + 'icinga2_api': { + 'matrix-synapse': { + 'services': { + 'SYNAPSE PROCESS': { + 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_http_url_for_string http://[::1]:20080/_matrix/static/ "Synapse is running"', + }, + }, + }, + }, 'matrix-synapse': { 'registration_shared_secret': repo.vault.human_password_for('{} matrix-synapse registration_shared_secret'.format(node.name)), 'database': { diff --git a/bundles/mautrix-telegram/metadata.py b/bundles/mautrix-telegram/metadata.py index 898a7e9..2e8098c 100644 --- a/bundles/mautrix-telegram/metadata.py +++ b/bundles/mautrix-telegram/metadata.py @@ -4,6 +4,15 @@ defaults = { 'ffmpeg': {}, }, }, + 'icinga2_api': { + 'mautrix-telegram': { + 'services': { + 'MAUTRIX-TELEGRAM PROCESS': { + 'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -a mautrix-telegram -c 1:', + }, + }, + }, + }, 'matrix-synapse': { 'appservice_configs': { '/opt/mautrix-telegram/registration.yaml', diff --git a/bundles/mx-puppet-discord/metadata.py b/bundles/mx-puppet-discord/metadata.py index 4f1df90..f75841b 100644 --- a/bundles/mx-puppet-discord/metadata.py +++ b/bundles/mx-puppet-discord/metadata.py @@ -4,6 +4,15 @@ defaults = { '/opt/mx-puppet-discord/registration.yaml', }, }, + 'icinga2_api': { + 'mx-puppet-discord': { + 'services': { + 'MX-PUPPET-DISCORD PROCESS': { + 'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -a mx-puppet-discord -c 1:', + }, + }, + }, + }, 'mx-puppet-discord': { 'database': { 'user': 'mx-puppet-discord',