improve service active documentation

This commit is contained in:
2025-01-23 16:24:03 +01:00
parent 3fa58ff3db
commit 60838d1511

View File

@@ -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)