Fix BackupPC script when BackuPPC_link is waiting for the nightly cleanup to finish

tags/zabbix-agent-addons-0.2.94-1
Daniel Berteaud 5 years ago
parent 692517ba87
commit f51a6a930d
  1. 4
      zabbix_scripts/check_backuppc_sudo

@ -63,7 +63,9 @@ if ( $host ) {
} }
# Push all the sizes in our data set to compute avg sizes # Push all the sizes in our data set to compute avg sizes
# Exclude backup N°0 as it'll always have much more new data than normal backups # Exclude backup N°0 as it'll always have much more new data than normal backups
$sizes->add_data($backup->{sizeNew}) unless ( $backup->{num} == 0 ); # Also exclude if size is not defined. This can happen in BackupPC v3 when
# the link process is waiting for the nightly to finish
$sizes->add_data($backup->{sizeNew}) unless ( $backup->{num} == 0 || !$backup->{sizeNew} );
$json->{bkp}++; $json->{bkp}++;
} }

Loading…
Cancel
Save