I would like to try to make a few changes to how geolocation is handled in librenms.
During discovery:
- Any [lat,long] in the sysLocation string takes precedence
- If [lat,long] is missing in the sysLocation string, an attempt is made to find a DNS LOC record. (In case of a non-FQDN, an initial reverse lookup may be required first.)
- If no DNS LOC record is found, $config[‘defaultgeoloc’] is set as coordinates.
- If $config[‘defaultgeoloc’] is not set, no coordinates are set. (Or a hardcoded set?)
In web-UI:
- Devices are grouped in Devices | Geolocations by the non-[lat,long] part of sysLocation only.
- Device Overview displays the text part of sysLocation as well as any coordinates (independent of source) in the location field.
- The separate Lat/Lng field in the Device Overview is removed
Opinions? Thoughts? Advice?