Comments (3)
@fcqpl said:
I'm getting ESP8266 resetting while doing snmp get with long oid.
Example OID:1.3.6.1.2.1.1.5.0.4.1.1.3.4.5.67.2.21.2.23.3.4.5.5.6.2.1222.3
I'm not using long oids in my application, but I connected LibreNMS in which I wanted to keep charts. During execution of Device Discovery, ESP8266 resets multiple times.
Example OID from Librenms discovery:1.3.6.1.4.1.8072.1.3.2.3.1.2.6.100.105.115.116.114.111
Arduino_SNMP should dropping packets with long oid, but i don't know where to implement it.
I am working with the developer @0neblock on this same issue on my ESP32 and wanted to reach out to you with a suggestion that is working at the moment for me. I am using both Observium and LibreNMS on testing a solution and I noted that if I disable UCD-SNMP-MIB checking within the Observium \ device \ properties \ MIBs section (LibreNMS should have the same section) then the crash stops.
That disables the extended UCD-SNMP-MIB and then I have no issues. This is not a fix but it does get me to the next step of reliable operation so I can continue testing and building instead of endless crashing. Hope it helps in some small way.
from arduino_snmp.
I believe the crashes with long OIDs is caused by a fixed size buffer which only allows max of 50 characters for the OID. I believe an OID can be up to 128. I'll submit a PR for this change shortly.
from arduino_snmp.
@shortbloke I can confirm that making the suggested changes to the BER.h file manually has fixed the issue. Much appreciated!
from arduino_snmp.
Related Issues (20)
- ESP8266 v3.0 breaks library - Use 2.7.4 (or older) HOT 5
- esp8266 Vscode HOT 3
- SNMP Manager HOT 2
- No reply to snmpwalk request to .1 HOT 2
- No reply to request to 1.0.8802.1.1.2.1.3.6.0 HOT 1
- OID response of .0.0 HOT 2
- Lot of libraries missing to compile on a MEGA2560 HOT 3
- SNMP trap HOT 1
- Issue when GoSNMP library uses the default MaxRepetitions=50 HOT 1
- transferring tables
- Float HOT 1
- ip address HOT 2
- Pointer to structure for addReadWriteStringHandler results in SNMP no such object HOT 6
- addDynamicWrite ?
- How to "Delete" a SNMPTrap object when allocated with the new SNMPTrap command HOT 1
- Example not working
- How can I connect to an snmp manager having a password in communities?
- Long Form Length bug -- fix included HOT 1
- addDynamicIntegerHandler usage
- How to reuse trap and update setTrapOID() for each send
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_snmp.