librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
117 stars 188 forks source link

Add systemd script #426

Closed bnerickson closed 1 year ago

bnerickson commented 1 year ago

This script is the first part in a two-part series of PRs to add systemd unit polling to LibreNMS as an application. systemd.py executes the systemctl command to list all units (inactive units can be listed as well if enabled as a configuration file parameter) and scrape each unit's load, activation, and sub states.

A screenshot of what all this will look like when the upcoming application PR is submitted is attached to this PR.

systemd