diff --git a/check_cronstatus b/check_cronstatus index 112c94d7d89db76ae7917638fce83cea023cefa8..b2a73491361ccc4412456b01aa880e29e8b1e43b 100755 --- a/check_cronstatus +++ b/check_cronstatus @@ -24,13 +24,14 @@ # 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 +# 2023-09-18 v2.2 <axel.hahn@unibe.ch> replace pipes in systemctl status output +# 2024-04-03 v2.3 <axel.hahn@unibe.ch> add NO_COLOR=1 to supress color and emojis # ====================================================================== . $( dirname $0 )/inc_pluginfunctions -export self_APPVERSION=2.2 +export self_APPVERSION=2.3 statusScript=/opt/cronwrapper/cronstatus.sh @@ -85,6 +86,7 @@ if [ ! -x "${statusScript}" ]; then ph.status Cronjob status - script not found/ not executable: "${statusScript}" else + export NO_COLOR=1 out=$( $statusScript ) rc=$?