From 49f17304ad6ac14364da4ba702e3525cf7110d8d Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 3 Apr 2019 16:26:14 +0200 Subject: [PATCH] More compact BPCSTATUS (1/0 instead of enabled/disabled) --- zabbix_scripts/disco_backuppc_sudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_scripts/disco_backuppc_sudo b/zabbix_scripts/disco_backuppc_sudo index 689a09a..1f422c9 100644 --- a/zabbix_scripts/disco_backuppc_sudo +++ b/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,