Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RouterOS 7.1 and LTE interface statistics #128

Open
amossam opened this issue Dec 8, 2021 · 3 comments
Open

RouterOS 7.1 and LTE interface statistics #128

amossam opened this issue Dec 8, 2021 · 3 comments

Comments

@amossam
Copy link

amossam commented Dec 8, 2021

Hello

I have LHG LTE6 device, and I updated it today to RouterOS 7.
After that, LTE statistics stopped working. Problem is that they changed some API
Fix is bellow, but it needs to be updated to check for RouterOS version,
but I have only one device and very little knowledge about RouterOS API...

Regards

diff --git a/collector/lte_collector.go b/collector/lte_collector.go
index 4baf6f6..95fdbcb 100644
--- a/collector/lte_collector.go
+++ b/collector/lte_collector.go
@@ -71,7 +71,7 @@ func (c *lteCollector) fetchInterfaceNames(ctx *collectorContext) ([]string, err
 }

 func (c *lteCollector) collectForInterface(iface string, ctx *collectorContext) error {
-       reply, err := ctx.client.Run("/interface/lte/info", fmt.Sprintf("=number=%s", iface), "=once=", "=.proplist="+strings.Join(c.props, ","))
+       reply, err := ctx.client.Run("/interface/lte/monitor", fmt.Sprintf("=.id=%s", iface), "=once=", "=.proplist="+strings.Join(c.props, ","))
        if err != nil {
                log.WithFields(log.Fields{
                        "interface": iface,
@baragoon
Copy link

Also temperature and voltage information are gone after upgrade to 7.1

@encryptblockr
Copy link

encryptblockr commented May 15, 2022

@amossam @baragoon

you guys mind pasting working grafana dashboard json file?
looking to have historical traffic data like how much bandwidth utilized etc like the screenshot below from observium

please reply; will appreciate it
thanks!

image

#140

@elico
Copy link

elico commented Apr 14, 2024

Anyone is working or worked on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants