diff --git a/check_systemdunit b/check_systemdunit index 35cf7cc0b62bd81d0fca8f60ba71fc7c390db9bc..f2fe97f192d75ed78cae54c83acd836799baf993 100755 --- a/check_systemdunit +++ b/check_systemdunit @@ -8,11 +8,12 @@ # 2020-09-06 v1.1 <axel.hahn@unibe.ch> add params -s, -l # 2020-09-06 v1.2 <axel.hahn@unibe.ch> add param -r to use a regex # 2020-09-18 v1.3 <axel.hahn@unibe.ch> fix: list units --all to show all stopped units +# 2020-09-18 v1.4 <axel.hahn@unibe.ch> replace pipes in systemctl status output # ================================================================================ . $( dirname $0 )/inc_pluginfunctions -export self_APPVERSION=1.3 +export self_APPVERSION=1.4 # ---------------------------------------------------------------------- # FUNCTIONS @@ -126,7 +127,7 @@ fi # --- check given unit -_status=$( systemctl --no-pager -l status "${_unit}" 2>&1 ) +_status=$( systemctl --no-pager -l status "${_unit}" 2>&1 | tr '|' ':' ) if ! grep "Active: active (running) " <<< "${_status}" >/dev/null; then ph.setStatus critical diff --git a/docs/20_Checks/check_psqlserver.md b/docs/20_Checks/check_psqlserver.md index 50f468d4aab5a3a45da60d221d42182463c5852a..96c5869913136a2c7261035276c2665802b258f2 100644 --- a/docs/20_Checks/check_psqlserver.md +++ b/docs/20_Checks/check_psqlserver.md @@ -18,7 +18,7 @@ The kind of check is defined by a parameter `-m METHOD`. ./check_psqlserver -h ______________________________________________________________________ -CHECK_PSQLSERVER :: v0.7 +CHECK_PSQLSERVER :: v0.9 (c) Institute for Medical Education - University of Bern Licence: GNU GPL 3 diff --git a/docs/20_Checks/check_systemdunit.md b/docs/20_Checks/check_systemdunit.md index 2f1b92365380cca83278d2349b241e507ad80676..da6c2996f779d1dfbb99d41e70544aed30815b88 100644 --- a/docs/20_Checks/check_systemdunit.md +++ b/docs/20_Checks/check_systemdunit.md @@ -16,7 +16,7 @@ A unit is everything listed by systemctl command - services, timers, targets, .. ______________________________________________________________________ CHECK_SYSTEMDUNIT -v1.3 +v1.4 (c) Institute for Medical Education - University of Bern Licence: GNU GPL 3