diff --git a/zabbix_scripts/disco_backuppc_sudo b/zabbix_scripts/disco_backuppc_sudo index fa6aacc..1c6a49a 100644 --- a/zabbix_scripts/disco_backuppc_sudo +++ b/zabbix_scripts/disco_backuppc_sudo @@ -36,12 +36,14 @@ foreach my $host (keys %$hosts){ next unless ($host =~ m!$regex!); my $hostConf = $bpc->ConfigDataRead($host); my $conf = { %$mainConf, %$hostConf }; - my $period = ($conf->{FullPeriod} >= $conf->{IncrPeriod}) ? $conf->{IncrPeriod} : $conf->{FullPeriod}; + my $warning = $conf->{EMailNotifyOldBackupDays}; + my $errors = (defined $conf->{MaxXferError}) ? $conf->{MaxXferError}: '0'; my $status = ($conf->{BackupsDisable} eq 1) ? 'disabled':'enabled'; push @{$json->{data}}, { "{#BPCHOST}" => $host, - "{#BPCPERIOD}" => $period, + "{#BPCNOBACKUPWARNING}" => $warning, + "{#BPCMAXERROR}" => $errors, "{#BPCSTATUS}" => $status, }; }