diff --git a/check_cronstatus b/check_cronstatus index 1d1a7516e6189a27232aba3ba14fc1a058c0df7a..112c94d7d89db76ae7917638fce83cea023cefa8 100755 --- a/check_cronstatus +++ b/check_cronstatus @@ -24,12 +24,13 @@ # 2022-02-28 v1.5 <axel.hahn@iml.unibe.ch> fix output of error counter # 2022-08-23 v2.0 <axel.hahn@iml.unibe.ch> simplify it: use cronstatus.sh (it has exitcode >0 on errors now) # 2023-07-27 v2.1 <axel.hahn@unibe.ch> update help page +# 2020-09-18 v2.2 <axel.hahn@unibe.ch> replace pipes in systemctl status output # ====================================================================== . $( dirname $0 )/inc_pluginfunctions -export self_APPVERSION=2.1 +export self_APPVERSION=2.2 statusScript=/opt/cronwrapper/cronstatus.sh @@ -93,7 +94,7 @@ else ph.setStatus "ok" fi ph.status Cronjob status $( echo "$out" | tail -1 ) - echo "$out" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" + echo "$out" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | tr '|' ':' fi ph.exit