Skip to content

Unit monitoring

Markus Enax edited this page Dec 3, 2016 · 8 revisions

This library is suited for monitoring systems which are based on systemd. It therefore comes with some handy monitoring tools which are located in the de.thjom.java.systemd.tools package.

UnitNameMonitor

An instance of type de.thjom.java.systemd.tools.UnitNameMonitor is able to monitor a set of discrete systemd units. Units which shall be monitored can be added to the monitor instance either directly (by a Unit object) or by their name (e.g. "avahi-daemon.service"). The latter option is useful in case units are not yet known to the systemd daemon, but however already expected.

UnitTypeMonitor

An instance of type de.thjom.java.systemd.tools.UnitTypeMonitor is able to monitor all units of a configurable unit type (e.g. "mount" or "service").

Clone this wiki locally