Git Product home page Git Product logo

Comments (2)

Gug42 avatar Gug42 commented on September 24, 2024

Hello,

I have the same issue here ...
I have try another "netapp collector" , wihtout success ... can you test it plz ?
https://github.com/SpringerPE/diamond-ontapclustercollector

I'm using diamond version 4.0.181

Thank you in advance.

from diamond.

DStape avatar DStape commented on September 24, 2024

Hello @powo, @Gug42,

I can see that this still remains a problem (and only for this specific collector):

netapp/netapp.py:    def collect(self, device, ip, user, password):
netapp/netappDisk.py:    def collect(self, device, ip, user, password):
netapp/netapp_inode.py:    def collect(self, device, ip, user, password):

I don't know much about the history of diamond or how this collector remains in the current state that it's in (and I unfortunately I don't have the cycles to study the git log), but I think it's reasonable to assert that this collector wasn't updated whenever the collect api changed.

If you'd still like to see this work, device, ip, user, password can be removed from the method signature and where they are referenced in the method's implementation, replace the ref with self.config.get(device, etc) instead, as these values are expected to exist as part of the config.

Even with the above suggestion though, the code needs a lot of TLC, for instance, on every invocation of collect, there's a try - except block where the code attempts to import some netapp library - this is something that should be done when the collector is initally loaded, not on every collection which could be as much as every second.

Anyhow, @josegonzalez , can this issue be closed please? (If there is still interest in this plugin, please feel free to contribute by opening a new issue/pr.)

from diamond.

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.