Coder Social home page Coder Social logo

No VLANs in my librenms about smartserver HOT 4 CLOSED

toffee avatar toffee commented on July 18, 2024
No VLANs in my librenms

from smartserver.

Comments (4)

HolgerHees avatar HolgerHees commented on July 18, 2024

Thanks again for reporting. Every found bug makes it more stable and useable :-)

can you please check

932fc75

I implemented a vlan fallback handling in case that vlans does not exists.

from smartserver.

toffee avatar toffee commented on July 18, 2024

Thank you very much. I thing the fallback mechanism will work. Now I get an error (I guess the fix would be to assign to 404 error code an object not an array):

[ERROR] - [anner.handler.librenms:61] - LibreNMS got unexpected exception. Will suspend for 15.0 minute(s).
[ERROR] - [anner.handler.librenms:61] - Traceback (most recent call last):
  File "/opt/system_service/lib/scanner/handler/librenms.py", line 49, in _run
    self._processLibreNMS()
  File "/opt/system_service/lib/scanner/handler/librenms.py", line 83, in _processLibreNMS
    self._processVLANs()
  File "/opt/system_service/lib/scanner/handler/librenms.py", line 166, in _processVLANs
    _vlans = _vlan_json["vlans"]
             ~~~~~~~~~~^^^^^^^^^
TypeError: list indices must be integers or slices, not str

from smartserver.

HolgerHees avatar HolgerHees commented on July 18, 2024

I guess, one array level too much.

783783b

from smartserver.

toffee avatar toffee commented on July 18, 2024

Everything fine now. Thank you!

from smartserver.

Related Issues (15)

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.