More compact BPCSTATUS (1/0 instead of enabled/disabled)

tags/zabbix-agent-addons-0.2.65-1
Daniel Berteaud 6 years ago
parent f85315bb30
commit 49f17304ad
  1. 2
      zabbix_scripts/disco_backuppc_sudo

@ -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':(($conf->{ZabbixMonitoring} eq '0') ? 'disabled':'enabled');
my $status = ($conf->{BackupsDisable} eq '1') ? 'disabled':(($conf->{ZabbixMonitoring} eq '0') ? '0':'1');
push @{$json->{data}},
{
"{#BPCHOST}" => $host,

Loading…
Cancel
Save