systemd — systemd units and services

The systemd check searches the list of running systemd units and services, and asserts that units are running, stopped, or missing.

Examples

Check that a service is running:

[[systemd]]
service = 'sshd'

Check that a service is stopped:

[[systemd]]
service = 'httpd'
state = 'stopped'

List of parameters

parameterstructuredescription
servicestringName of the systemd service.
statestringState of the systemd service. This can be 'running', 'stopped', or 'missing'.