Duplicate devices different IP addresses

Hi,

My devices are discovered by IP address and then the true hostname appears as the system name with the IP showing up as hostname in librenms. How can I prevent devices with multiple IP addresses from being discovered multiple times?

and