Giter VIP home page Giter VIP logo

Comments (7)

willixix avatar willixix commented on August 26, 2024

It used to work but its been a very long time since I tested it with multiple controllers (probably in 2007 old scsi megaraid + one sas along with it). What particular doesn't work?

from naglio-plugins.

willixix avatar willixix commented on August 26, 2024

And if you're able to fix it yourself and provide a patch or a pull request, it'd be much appreciated!

from naglio-plugins.

erezzarum avatar erezzarum commented on August 26, 2024

The physical device table shows the devices from all the controllers, the oid doesn't break down correctly (a lot of vendors don't know how to expose snmp correctly) so you get all the physical devices from all the controllers, you have to map them by a controller (using the physical device to adapter OID).
The goodcount,badcount, etc... is an OID that will count only the first controller (controller 0) so if you have a bad device in the second controller it will not detect it.
I will fork the repo and try to fix it (it will be fixed only for the sasraid type as i don't have access to any other controllers), haven't touched Perl in about 2 years (though i like the net-snmp implementation in Perl more than i do in Python ;) )
And btw, thank you for sharing your plugin!

from naglio-plugins.

erezzarum avatar erezzarum commented on August 26, 2024

I have forked and made some changes.
I have also increased the maxmsgsize.
My Perl skills are quite rusty, i will be happy if you can review it, i will try to add more features to it as well.

from naglio-plugins.

willixix avatar willixix commented on August 26, 2024

Ok, this I'd need to work on more in dev branch. Send me it as a patch by email and I'll apply it there.

The issue is too many table lookups and this plugin is one of the longest running if you time it. I'm trying to minimize queries for simple default cases so lookups in extra tables for multiple controllers would have to go as an option for those who need it. Also msgsize will become an option as well rather than setting to 16k as default. And I'll also import my new SNMP functions from another plugin for bulk snmp.

from naglio-plugins.

erezzarum avatar erezzarum commented on August 26, 2024

I tried to optimize it, but it's quite hard, especially when you have large amount of disks.
The run time for around 100 disks takes about 15s, i run those checks at 5mins interval, the slowness is not from the script itself but comes from the LSI SNMP module which is slow.
As example, i monitor a few switches, each "switch" is a stack that has 96 ports total, the run time to get all the interface stats (out,in,errors, etc..) is around 2s, that's because the SNMP output itself is fast, if i compare it to the LSI request, the request itself is very slow (LSI needs to optimize it)

from naglio-plugins.

willixix avatar willixix commented on August 26, 2024

I have released new version of check_smp_raid.pl with your patch for multiple controllers. It is in both master and dev branches now. Will be closing this issue now. Thank you for your contributions.

from naglio-plugins.

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.