I have a device (my router) that works fine when the host name is set to its IP address (
192.168.9.1), but when I set the host name to the actual host name of the device (
edge.armitage.space), LibreNMS considers it to be localhost. Logging in to the
librenms user on the LibreNMS host and pinging
edge.armitage.space yields the correct IP address (
PING edge.armitage.space (192.168.9.1) 56(84) bytes of data.)
When changing the host name to the actual host name, on the next poll, LibreNMS changes all of the device information over to match that of
localhost (OS, ports, processor, everything). Changing back to the IP address of the router changes everything back to the correct data.
This was working fine until I had an extended power outage and my router (running both DHCP and DNS servers) did not come back up properly. After resolving that I power cycled pretty much everything in my network. All other devices tracked by LibreNMS are working fine by host name.