Hello
We have couple of LTE/mikrotik routers here. I can see that there is a Mikrotik MIB inside lnms mib dir, I can see that discovery uses that MIB but I don’t understand how to tell it to also to get LTE interface stats.
Component
Version
LibreNMS
21.10.0
DB Schema
2021_09_07_094310_create_push_subscriptions_table (221)
PHP
7.3.20
Python
3.6.8
MySQL
10.3.28-MariaDB
RRDTool
1.7.0
SNMP
NET-SNMP 5.8
====================================
[OK] Composer Version: 2.1.9
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
https://p.libren.ms/view/32742246
https://p.libren.ms/view/2c2b7fb1
Thank you
I believe it was fixed couple of days ago
librenms:master
← sthen:routeros_lte
opened 05:17PM - 22 Jun 21 UTC
c69efb34443 added support for signal quality statistics for LTE modems on Mikrot… ik devices, but hardcoded the index to 1 so did not work in some cases, e.g. on ltap mini I have this (some fields masked) from a walk of MIKROTIK-MIB::mtxrLTEModemTable;
```
MIKROTIK-MIB::mtxrLTEModemSignalRSSI.3 = INTEGER: 0
MIKROTIK-MIB::mtxrLTEModemSignalRSRQ.3 = INTEGER: -10
MIKROTIK-MIB::mtxrLTEModemSignalRSRP.3 = INTEGER: -104
MIKROTIK-MIB::mtxrLTEModemCellId.3 = INTEGER: 21XXXX
MIKROTIK-MIB::mtxrLTEModemAccessTechnology.3 = INTEGER: eutran(7)
MIKROTIK-MIB::mtxrLTEModemSignalSINR.3 = INTEGER: 14
MIKROTIK-MIB::mtxrLTEModemEnbId.3 = INTEGER: 84XX
MIKROTIK-MIB::mtxrLTEModemSectorId.3 = INTEGER: 0
MIKROTIK-MIB::mtxrLTEModemLac.3 = INTEGER: 24XX
MIKROTIK-MIB::mtxrLTEModemIMEI.3 = STRING: 355654XXXXXXXXX
MIKROTIK-MIB::mtxrLTEModemIMSI.3 = STRING: 234200XXXXXXXXX
MIKROTIK-MIB::mtxrLTEModemUICC.3 = STRING: 89442001XXXXXXXXXXXX
MIKROTIK-MIB::mtxrLTEModemRAT.3 = STRING: Evolved 3G (LTE)
```
I'm not brilliant at php and don't know the codebase all that well so the diff is hacked together based on other parts in the file, and isn't perfect - in particular there's no good identifier to use as an interface name in the table so I pull it from mtxrInterfaceStatsName.$index; not sure how/where I can cache it so there's room for improvement there. It functions ok for me and I think is an improvement over what's there now.
In order to prevent sensor collisions 60Ghz rate, frequency and distance sensors have had their rrd files renamed. This will cause historical data on these sensors to be lost. You may rename the old files to match the new file names to preserve historical data.
DO NOT DELETE THE UNDERLYING TEXT
#### Please note
> Please read this information carefully. You can run `./lnms dev:check` to check your code before submitting.
- [X] Have you followed our [code guidelines?](https://docs.librenms.org/Developing/Code-Guidelines/)
- [ ] If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
Thank you devs!
1 Like
system
Closed
30 October 2021 07:22
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.