Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
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
Owner
Eric Schultz
Compatible With
The Plugin
Sample command definitions
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.
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?
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; }
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; }
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( / );
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)
Very helpful. Running on Nagios 3.2 and 3.2.3 on CentOS 5.5 with no issues.
You must be logged in to submit a review.
To:
From: