Fix an error message when no sensor is configured

tags/zabbix-agent-addons-0.2.20-1
Daniel Berteaud 12 years ago
parent 166443918f
commit e85d56f105
  1. 2
      zabbix_scripts/disco_sensors

@ -17,5 +17,5 @@ foreach (<SENSORS>){
}; };
} }
close SENSORS; close SENSORS;
print to_json($json); print to_json($json) if (defined $json->{data});
exit(0); exit(0);

Loading…
Cancel
Save