Coder Social home page Coder Social logo

Comments (5)

luto avatar luto commented on June 26, 2024

The flattening is the kinda-solution to me failing at importing the data as properly structured json :) it seems like you're also hitting problems there.

Dont expose the context_data to Icinga

I can't find any documentation or even code on context_data. Can you expand a bit on what exactly it contains? :) I am probably fine with just dropping it, though.

from icingaweb2-module-netboximport.

joni1993 avatar joni1993 commented on June 26, 2024

😀
I dont use the context data by myself in netbox but here is the link to to documentation https://netbox.readthedocs.io/en/stable/additional-features/context-data/

from icingaweb2-module-netboximport.

luto avatar luto commented on June 26, 2024

oooh, it's a netbox feature, of course. I was looking for icinga docs m(
hm, that actually sounds like useful. Maybe just drop all keys which are too long and document that in the README? Would you like to write a small PR? :)

from icingaweb2-module-netboximport.

joni1993 avatar joni1993 commented on June 26, 2024

Just dropping the keys sounds wrong to me. Maybe just get rid of the flattening. But I need to get more into your code to understand it fully, because of the way interfaces are merged with the hosts.

from icingaweb2-module-netboximport.

joni1993 avatar joni1993 commented on June 26, 2024

PR is out. I decided its probably the best (e.g. easiest 😃 ) idea just not to flatten the local_context_data and encode it back to JSON, because it essentially is stored as JSON in Netbox.

from icingaweb2-module-netboximport.

Related Issues (9)

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.