SNMP

SNMP checking for IBM Bladecenters

Description:

This module Tests various aspects of the IBM Bladecenter using the SNMP interface of the Management Module.

Current Version

Last Release Date

June 23, 2009

Compatible With

Owner


Project Files
Project Notes
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.
Reviews (6) Add a Review
Search path utils.pm
by killermoehre, May 31, 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?



fix suggestion
by Makulev, August 31, 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; }



Updated check with three new checks
by jerico79, May 31, 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; }



Works well so far in 3.3.1
by cluckinchicken, January 31, 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( / );



Power Utilization
by frrrredo, April 30, 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)



Works Great
by pmbasehore, February 28, 2011

Very helpful. Running on Nagios 3.2 and 3.2.3 on CentOS 5.5 with no issues.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.2 (10)
Favorites
0
Views
164,320