diff --git a/zabbix_scripts/disco_backuppc_sudo b/zabbix_scripts/disco_backuppc_sudo index 65461bc..fa6aacc 100644 --- a/zabbix_scripts/disco_backuppc_sudo +++ b/zabbix_scripts/disco_backuppc_sudo @@ -31,6 +31,7 @@ my $hosts = $bpc->HostInfoRead(); my $mainConf = $bpc->ConfigDataRead(); my $json; +@{$json->{data}} = (); foreach my $host (keys %$hosts){ next unless ($host =~ m!$regex!); my $hostConf = $bpc->ConfigDataRead($host);