diff options
Diffstat (limited to 'check_systemd')
-rwxr-xr-x | check_systemd | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/check_systemd b/check_systemd deleted file mode 100755 index bf8d532..0000000 --- a/check_systemd +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# USAGE: -# check_systemd [UNIT ...] - -FAILED=() - -for unit in "$@"; do - if ! systemctl is-active "$unit" > /dev/null; then - FAILED+=("$unit") - fi -done - -if [ ${#FAILED[@]} -gt 0 ]; then - echo "systemd CRITICAL: failed units: ${FAILED[@]}" - exit 2 -fi - -#if ! systemctl is-system-running > /dev/null; then -# echo systemd WARNING: System state degraded. -# exit 1 -#fi - -echo "systemd OK: $# units checked" -exit 0 |