Fix reporting MaxXferError

tags/zabbix-agent-addons-0.2.72-1
Daniel Berteaud 6 years ago
parent 9668c8eff2
commit 5e01f9ee2d
  1. 3
      zabbix_scripts/check_backuppc_sudo

@ -60,7 +60,8 @@ if ( $host ) {
$json->{total_size} += $json->{full_size} - 2 * $new_size_of_last_full;
$json->{age} = time - $age;
$json->{max_errors} = $conf->{MaxXferError} if (defined $conf->{MaxXferError});
$json->{max_errors} = $conf->{MaxXferError} || 0;
} elsif ( $entity ) {
$json = {

Loading…
Cancel
Save