Code Monkey home page Code Monkey logo

Comments (3)

fawnlake1 avatar fawnlake1 commented on August 15, 2024

@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.

extended MIB crash

from arduino_snmp.

shortbloke avatar shortbloke commented on August 15, 2024

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.

fawnlake1 avatar fawnlake1 commented on August 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.