From f4267cd3dddd84cfea984b0bc2077904a67b1377 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Sun, 29 Mar 2015 17:21:15 +0200 Subject: [PATCH] Move the documentation to README.md --- README.md | 16 ++++++++++++++++ check_systemd_state | 14 -------------- 2 files changed, 16 insertions(+), 14 deletions(-) create mode 100755 README.md diff --git a/README.md b/README.md new file mode 100755 index 0000000..e58ddc6 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +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 + +License: Public Domain. Keep my name in it if you like. +Author: Mike Gerber 2015 diff --git a/check_systemd_state b/check_systemd_state index 4646202..f069095 100755 --- a/check_systemd_state +++ b/check_systemd_state @@ -1,19 +1,5 @@ #!/usr/bin/python # 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 -# -# License: Public Domain. Keep my name in it if you like. -# Author: Mike Gerber 2015 from __future__ import division, print_function import subprocess