diff --git a/check_iml_backup_server b/check_iml_backup_server index 3e5a14126db60d8969f94378faa87870508a89b6..9c28caf0258d7c2970e980a28490de6280f6379a 100755 --- a/check_iml_backup_server +++ b/check_iml_backup_server @@ -11,11 +11,12 @@ # 2023-12-20 v0.2 <axel.hahn@iml.unibe.ch> # 2023-12-21 v1.0 <axel.hahn@iml.unibe.ch> first version # 2023-12-21 v1.1 <axel.hahn@iml.unibe.ch> Update help text +# 2024-03-22 v1.2 <axel.hahn@iml.unibe.ch> Update grep for backup via restic rest # ====================================================================== . $(dirname $0)/inc_pluginfunctions -export self_APPVERSION=1.1 +export self_APPVERSION=1.2 sInstalldir=/opt/imlbackup/server sScript=storage_helper.sh @@ -69,7 +70,8 @@ EOF function _getServerOfStatus(){ local _key="$1" local _data="$2" - grep "$_key .*| [0-9].* |" <<< "$_data" + # grep "$_key .*| [0-9].* |" <<< "$_data" + grep "$_key .*/" <<< "$_data" } # get count of servers with a given status