From 9398649db04ff8b109b2ec9eee7391d9dd697bb3 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 5 Dec 2020 09:28:54 +0100 Subject: [PATCH] bundles/seafile: add icinga checks --- bundles/seafile/metadata.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bundles/seafile/metadata.py b/bundles/seafile/metadata.py index 01472a8..66a586d 100644 --- a/bundles/seafile/metadata.py +++ b/bundles/seafile/metadata.py @@ -12,4 +12,16 @@ defaults = { '/opt/seafile', }, }, + 'icinga2_api': { + 'seafile': { + 'services': { + 'SEAFILE PROCESS': { + 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit seafile', + }, + 'SEAHUB PROCESS': { + 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit seahub', + }, + }, + }, + }, }