LibreNMS Location on map / GPS Data

Hi, I am trying to correctly place all the devices (mostly cisco and ubnt) on the frontpage map. I have enable
$config[‘geoloc’][‘latlng’] = true;
$config[‘geoloc’][‘engine’] = “google”;
In the smtp-location I tried putting the address of the devices locations but doesn’t seem to place all of them. Is there a better way to do this or by using GPS data?

You dont need to add that to your config… Could be causing issues…

Got to the device settings in the WEBUI type in the address or you could put in the GPS coordinates.

Ahh ok must have missed that. Thank You.
Is there a way to grab the GPS data from the ubnt devices? It has gps built in.

Im not sure…maybe if could pulled from SNMP. that would be pretty cool :smirk:
I guess if you could find out if there is an OID in the SNMP walk and then submit it in git hub.

Where do I submit it to github.
I was able to find the AirFiber ones, I still need to find the others
AirFiber
"gpsSync" "1.3.6.1.4.1.41112.1.3.1.1.8"
“gpsPulse” "1.3.6.1.4.1.41112.1.3.2.1.28"
“gpsFix” "1.3.6.1.4.1.41112.1.3.2.1.29"
“gpsLat” "1.3.6.1.4.1.41112.1.3.2.1.30"
“gpsLong” "1.3.6.1.4.1.41112.1.3.2.1.31"
“gpsAltMeters” "1.3.6.1.4.1.41112.1.3.2.1.32"
“gpsAltFeet” "1.3.6.1.4.1.41112.1.3.2.1.33"
“gpsSatsVisible” "1.3.6.1.4.1.41112.1.3.2.1.34"
“gpsSatsTracked” "1.3.6.1.4.1.41112.1.3.2.1.35"
“gpsHDOP” “1.3.6.1.4.1.41112.1.3.2.1.36”

and follow the doc FAQ - LibreNMS Docs

Do I just run
./discovery.php -h HOSTNAME -d | ./pbin.sh
./poller.php -h HOSTNAME -r -f -d | ./pbin.sh
snmpbulkwalk -OUneb -v2c -c COMMUNITY HOSTNAME . | ./pbin.sh
commands and wait?
or do I have to do something in github also?

you have to paste the outputs into https://p.libren.ms/ or pastebin. Then open Issue for add support to a device in git hub.

for me the ultimate solution had been like this, and this could be used in a consistent way across all devices no matter if physical, virtual, routers, switches, servers, …

grep syslocation /etc/snmp/snmpd.conf
syslocation F1CONS DC-ER-RACK00 [49.5981, 10.9463]

Wolfgang