diff --git a/admin-guide/configuration/monitoring/icinga2.md b/admin-guide/configuration/monitoring/icinga2.md index c72f552c..b4d147cb 100644 --- a/admin-guide/configuration/monitoring/icinga2.md +++ b/admin-guide/configuration/monitoring/icinga2.md @@ -209,20 +209,23 @@ Here the warning is below 180 days and below 30 days is critical by default. ### Check for Systemd Service Status -To check if a daemon or service has been successfully started by systemd configure: +To check if a daemon or service has been successfully started by `systemd` configure: ``` -icinga2::additional_server_role: - - 'service-active' - -icinga2::service_check::customize: - 'Service Active': - service_names: - - 'xrdp' - - 'xrdp-sesman' +icinga2::custom_service: + 'XRDP Active': + template: 'st-agent-awi-lx-service-active' + vars: + criticality: 'A' + service_names: + - 'xrdp' + - 'xrdp-sesman' ``` +The name (here `XRDP Active`) needs to be unique over all Icinga "services" of a single host. +The `service_names` variable needs to contain one or more name of `systemd` services to be monitored. +You can create multiple of these checks. ### External Connection Checks (Active Checks)