Possibility to disable Zabbix monitoring of some hosts in BackupPC by adding {ZabbixMonitoring} = 0 in their conf

This commit is contained in:
Daniel Berteaud 2013-11-29 09:54:49 +01:00
parent b18688f582
commit 4bc1378781

View File

@ -38,7 +38,7 @@ foreach my $host (keys %$hosts){
my $conf = { %$mainConf, %$hostConf };
my $warning = $conf->{EMailNotifyOldBackupDays};
my $errors = (defined $conf->{MaxXferError}) ? $conf->{MaxXferError}: '0';
my $status = ($conf->{BackupsDisable} eq 1) ? 'disabled':'enabled';
my $status = ($conf->{BackupsDisable} eq '1') ? 'disabled':(($conf->{ZabbixMonitoring} eq '0') ? 'disabled':'enabled');
push @{$json->{data}},
{
"{#BPCHOST}" => $host,