nagios plugin to check the system state according to systemd
Find a file
Florian Heigl 754f736dd6 Nagios Compliant output
Hi,

the plugin output should stick to the Nagios plugin guidelines, that means you would need to start with OK/CRIT(ICAL))/UNKNOWN/WARN(ING)

Probably you want your actual "System is" text back in the output, I just didn't want to fiddle around in your code.
2016-12-17 17:36:29 +01:00
check_systemd_state Nagios Compliant output 2016-12-17 17:36:29 +01:00
README.md Use dbus-python to query system state and failed units 2016-12-17 17:12:36 +01:00

check_systemd_state

Nagios plugin to check the system state according to systemd. This plugin checks the system's state according to systemd, i.e.

$ systemctl is-system-running
degraded

If it reports anything other than "running", be sure to check the output of these commands:

$ systemctl list-units
$ systemctl status

Requires python-dbus.

License: Public Domain. Keep my name in it if you like. Author: Mike Gerber 2015, 2016