Comments (7)
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.
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.
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.
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.
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.
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.
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)
- check_linux_procstat pnp4nagios template HOT 3
- check_file - failure under embedded perl HOT 4
- Support check of total keys per database in check_redis? HOT 3
- check_files.pl: -l and -F <wildcard> with no files matching wildcard results in UNKNOWN ERROR HOT 4
- redis 2.6 memory_utilization data is missing HOT 2
- check_snmp_raid.pl: use strict / warnings issues HOT 4
- check_netint.pl fails for too many interfaces via snmp HOT 2
- check_netint --nagios_with_savedata removes octet values from perfdata HOT 2
- Support bytes read/write per second in check_memcache.pl HOT 12
- Use of uninitialized value within @oid_perf_inoct
- check_linux_procstat.pl with oracle linux kernel 2.6.39 doesn't work anymore
- check_files.pl issue with directory listings (remote file system) HOT 2
- check_uptime.pl perfdata empty when uptime has 0 hours
- check_redis.pl get hit rate with previous perf data
- check_files.pl - -a without WARNING value always returns WARNING
- Changing of ifDescr of SNMP of Debian Jessie and "-n" parameter
- check_snmp_attributes.pl: Argument "v6.0.1" isn't numeric in numeric lt (<)
- version with more readable time output
- Checking if nagios strips single quote in perfdata doesn't work in check_netint.pl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naglio-plugins.