I’m wondering if there’s a way of monitoring RUT data usage via the Teltonika API. So far I’m successfully making calls to the API and getting a variety of useful data e.g. wan state, connection type etc., however I’d like to see the data usage for a given device, i.e. the same data that is available through RMS under the ‘data usage’ tab, or something similar to that.
It’s hard to say if this can be done on the legacy firmware that you are using, however, in the latest firmware, you could utilize JSON-RPC and use ubus calls to get the data usage from the mdcollect module, which is responsible for data usage collection. More information about JSON-RPC in the modern RutOS versions can be found here: Monitoring via JSON-RPC windows RutOS - Teltonika Networks Wiki
These are the possible ubus mdcollect calls: