I would like to just have a simple script logging WiFi signal strength & GPS coordinates.
I’m not sure where to start…I tried doing it with SNMP which works well for the GPS coordinates, but the signal strength is difficult because the OID keeps changing.
I’d like to be able to just log at a set interval, say every 5 seconds.
If you can see the value in command line on the router, you can make a script that runs every 5 seconds and sends data to a syslog server.
If you have many devices to monitor, syslog may be better in some case compare to SNMP
With SNMP, you need to tell SNMP server each IP/DNS to monitor.
For Syslog, its the device talking home that needs the Syslog server IP, that will be the same for all devices (same config)
Are you trying to do this from a PC/Mac?
Or are running script on the Mikrotik itself? …Either can work, but what/where/format you want to the resulting GPS+WiFi data determine the script you need.
When you say “OID keeps changing” what specifically are you trying to read on the Wi-Fi? …OIDs don’t change, just not all may not be useful .
As for GPS, it’s located in /system gps
I can run the monitor command and this shows me all the information. I can also print the OID’s for longitude & lattitude…just not sure how I call these through the command line and therefore incorporate them into the script.