Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
SNMP checking for IBM Bladecenters
164309
File | Description |
---|---|
check_snmp_IBM_Bladecenter.pl | The Plugin |
commands.cfg | Sample command definitions |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This module Tests various aspects of the IBM Bladecenter using the SNMP interface of the Management Module.
I'm not big on descriptions, but the list of tests are:
System-State
System-Temp-Ambient
System-Temp-MM
System-Ethernet-Backplane
System-Primary-Bus
Blowers-Count
Blower-Speed
Switches-Count
Power-Count
Blades-Count
Blades-Comm
Basically I needed a plugin to do this so I took 3 hours and wrote it. I use this. If you have a metric or two that are listed in the mib file, that you want to monitor, send me an e-mail, and if I have some time I'll add it.
Oh, and the standard plugins didn't work because of the formatting of most of the info.
I'm not big on descriptions, but the list of tests are:
System-State
System-Temp-Ambient
System-Temp-MM
System-Ethernet-Backplane
System-Primary-Bus
Blowers-Count
Blower-Speed
Switches-Count
Power-Count
Blades-Count
Blades-Comm
Basically I needed a plugin to do this so I took 3 hours and wrote it. I use this. If you have a metric or two that are listed in the mib file, that you want to monitor, send me an e-mail, and if I have some time I'll add it.
Oh, and the standard plugins didn't work because of the formatting of most of the info.
Reviews (6)
bykillermoehre, May 15, 2013
A good plugin. Only thing is that your search path for utils.pm is hard coded. Can you add »/usr/lib64/nagios/plugins« to the path, too?
byMakulev, August 10, 2012
The plugin returns OK status even there are no connection to the snmp target host. For example I had error (with OK status):
ERROR: No response from remote host'10.201.11.124'
So what I suggest is to add exit 2 status in sub SNMP_getvalue:
if(!defined($res)){
print "ERROR: ".$snmp_session->error."\n";
exit 2;
}
ERROR: No response from remote host'10.201.11.124'
So what I suggest is to add exit 2 status in sub SNMP_getvalue:
if(!defined($res)){
print "ERROR: ".$snmp_session->error."\n";
exit 2;
}
byjerico79, May 27, 2012
Hello, Thanks a lot for the grate check. Have updated the check with the following three new checks:
- Information-LED
- System-Error-LED
- Temperature-LED
Would be grate if you could update thee script so all can profit of new additional checks:
elsif($test_name =~ m/^Information-LED$/i){
$oid = "2.8.1.2.0";
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text='Check Fail';
$data_text='OK' if $data eq 0;
}
elsif($test_name =~ m/^System-Error-LED$/i){
$oid = "2.8.1.1.0";
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text='Check Fail';
$data_text='OK' if $data eq 0;
}
elsif($test_name =~ m/^Temperature-LED$/i){
$oid = "2.8.1.3.0";
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text='Check Fail';
$data_text='OK' if $data eq 0;
}
- Information-LED
- System-Error-LED
- Temperature-LED
Would be grate if you could update thee script so all can profit of new additional checks:
elsif($test_name =~ m/^Information-LED$/i){
$oid = "2.8.1.2.0";
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text='Check Fail';
$data_text='OK' if $data eq 0;
}
elsif($test_name =~ m/^System-Error-LED$/i){
$oid = "2.8.1.1.0";
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text='Check Fail';
$data_text='OK' if $data eq 0;
}
elsif($test_name =~ m/^Temperature-LED$/i){
$oid = "2.8.1.3.0";
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text='Check Fail';
$data_text='OK' if $data eq 0;
}
bycluckinchicken, January 30, 2012
I could run from the CLI fine, but when Nagios made the call, I would get a Null result.
After some research, I changed the script at the top to show the path of my plugins directory, and all was well!
use lib qw( / );
After some research, I changed the script at the top to show the path of my plugins directory, and all was well!
use lib qw( / );
byfrrrredo, April 5, 2011
awesome plugin, I think it will be much better if you add performance data on output.
There is some sensitive info about power domains (power utilization) and it would be nice if the plugin could be get this information also. For getting this values in my implementation I added following:
elsif($test_name =~ m/^Power-1$/i){
$oid = "2.10.1.1.1.10.1"; # Power Domain 1
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data =~ s/W//g;
$data_text=$data."W Domain 1 Power Utilization";
}
elsif($test_name =~ m/^Power-2$/i){
$oid = "2.10.1.1.1.10.2"; # Power Domain 2
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data =~ s/W//g;
$data_text=$data."W Domain 2 Power Utilization";
}
#(tested on IBM Bladecenter H)
There is some sensitive info about power domains (power utilization) and it would be nice if the plugin could be get this information also. For getting this values in my implementation I added following:
elsif($test_name =~ m/^Power-1$/i){
$oid = "2.10.1.1.1.10.1"; # Power Domain 1
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data =~ s/W//g;
$data_text=$data."W Domain 1 Power Utilization";
}
elsif($test_name =~ m/^Power-2$/i){
$oid = "2.10.1.1.1.10.2"; # Power Domain 2
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data =~ s/W//g;
$data_text=$data."W Domain 2 Power Utilization";
}
#(tested on IBM Bladecenter H)
bypmbasehore, February 18, 2011
Very helpful. Running on Nagios 3.2 and 3.2.3 on CentOS 5.5 with no issues.