diff --git a/zabbix_scripts/disco_sensors b/zabbix_scripts/disco_sensors index c50be01..b941d9a 100644 --- a/zabbix_scripts/disco_sensors +++ b/zabbix_scripts/disco_sensors @@ -2,6 +2,7 @@ use JSON; my $json; +@{$json->{data}} = (); open SENSORS, ('){ }; } close SENSORS; -print to_json($json) if (defined $json->{data}); +print to_json($json); exit(0);