diff --git a/check_clientbackup.sh b/check_clientbackup.sh index 6bb5d2eae50f16b57e09e4273e8656a90bbd8cde..82a32061254668a25c168c013806bd7333078d9f 100755 --- a/check_clientbackup.sh +++ b/check_clientbackup.sh @@ -63,7 +63,6 @@ else echo echo ">>> RETURNCODES" grep "final.*rc=" $logfile - echo # --- Monitoring Statusline if [ -f "$(dirname $0)"/transfer.sh ]; then @@ -81,7 +80,7 @@ else # --- rc=0 must be here if [ $iOK -eq 0 ]; then echo "ERROR: no OK message was found. Something is messed up :-/" - iError=$iError+1 + iError+=1 fi # --- check age @@ -94,10 +93,11 @@ else if [ $iAge2 -gt $iMaxAgeInHours ]; then echo "Error: the last backup is older than $iMaxAgeInHours hours" sShort="$sShort ERROR: backup is older than $iMaxAgeInHours hours " - iError=$iError+1 + iError+=1 else echo "OK: last backup is younger $iMaxAgeInHours hours" sShort="$sShort OK: backup is younger than $iMaxAgeInHours hours " + iOK+=1 fi # --- changes (incremental backups only) and backup status infos