SAN and NAS

Check HP MSA (Modular Smart Array) sensors

Description:

This plugin checks all sensors of an HP MSA array.
Currently successfully tested with :

HP MSA2312i
HP MSA2012i
HP MSA2012fc
HP MSA2324i
HP P2000 G3 MSA (iSCSI & FC)

Usage : check_msa_hardware.pl -H [ hostname | IP address ] -C [ SNMP community ]
Don’t forget to enable SNMP on the MSA.

Current Version

1.2

Last Release Date

2014-05-19

Compatible With

  • Nagios 3.x

License

GPL


Nagios CSP

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!
Project Notes
This plugin checks all sensors of an HP MSA array. Currently successfully tested with : HP MSA2312i HP MSA2012i HP MSA2012fc HP MSA2324i HP P2000 G3 MSA (iSCSI & FC) Usage : check_msa_hardware.pl -H [ hostname | IP address ] -C [ SNMP community ] Don't forget to enable SNMP on the MSA. This plugin checks HP MSA probes. Thoses probres can be temperature sensors, voltaic sensors, hard disk states (from SMART), power supply states, and many things more. Each probes send their status which can be "warning" or "critical" according to their severity. Then, the worst state is send back to Nagios. Example usage: [root@supervision libexec]# ./check_msa_hardware.pl -C public -H 10.1.1.4 HP StorageWorks MSA2012i: Power Supply 2 Voltage, 12V: 1.75V [power-supply]. Power Supply 2 Voltage, 5V: 0.02V [power-supply]. Overall status value: Failed [enclosure]. CRITICAL There is a new option --list which list all available probes on your HP MSA: [root@supervision libexec]# ./check_msa_hardware.pl -H 10.1.1.4 -C public --list -v 2 List of probes: CPU Temperature (Controller Module A) (type: temperature) has status ok with message: 'CPU Temperature (Controller Module A): 50C 122F' CPU Temperature (Controller Module B) (type: temperature) has status ok with message: 'CPU Temperature (Controller Module B): 49C 120F' FPGA Temperature (Controller Module A) (type: temperature) has status ok with message: 'FPGA Temperature (Controller Module A): 53C 127F' FPGA Temperature (Controller Module B) (type: temperature) has status ok with message: 'FPGA Temperature (Controller Module B): 50C 122F' Onboard Temperature 1 (Controller Module A) (type: temperature) has status ok with message: 'Onboard Temperature 1 (Controller Module A): 36C 97F' Onboard Temperature 1 (Controller Module B) (type: temperature) has status ok with message: 'Onboard Temperature 1 (Controller Module B): 34C 93F' Onboard Temperature 2 (Controller Module A) (type: temperature) has status ok with message: 'Onboard Temperature 2 (Controller Module A): 41C 106F' Onboard Temperature 2 (Controller Module B) (type: temperature) has status ok with message: 'Onboard Temperature 2 (Controller Module B): 36C 97F' Capacitor Temperature (Controller Module A) (type: temperature) has status ok with message: 'Capacitor Temperature (Controller Module A): 32C 90F' Capacitor Temperature (Controller Module B) (type: temperature) has status ok with message: 'Capacitor Temperature (Controller Module B): 29C 84F' CM Temperature, Upper (Controller Module A) (type: temperature) has status ok with message: 'CM Temperature, Upper (Controller Module A): 41C 106F' CM Temperature, Lower (Controller Module B) (type: temperature) has status ok with message: 'CM Temperature, Lower (Controller Module B): 38C 100F' Power Supply 1 Temperature (type: temperature) has status ok with message: 'Power Supply 1 Temperature: 37C 99F' Power Supply 2 Temperature (type: temperature) has status ok with message: 'Power Supply 2 Temperature: 38C 100F' Capacitor Pack Voltage (Controller Module A) (type: power) has status ok with message: 'Capacitor Pack Voltage (Controller Module A): 8.19V' Capacitor Pack Voltage (Controller Module B) (type: power) has status ok with message: 'Capacitor Pack Voltage (Controller Module B): 8.19V' Capacitor Cell 1 Voltage (Controller Module A) (type: power) has status ok with message: 'Capacitor Cell 1 Voltage (Controller Module A): 2.03V' Capacitor Cell 1 Voltage (Controller Module B) (type: power) has status ok with message: 'Capacitor Cell 1 Voltage (Controller Module B): 2.03V' Capacitor Cell 2 Voltage (Controller Module A) (type: power) has status ok with message: 'Capacitor Cell 2 Voltage (Controller Module A): 2.03V' Capacitor Cell 2 Voltage (Controller Module B) (type: power) has status ok with message: 'Capacitor Cell 2 Voltage (Controller Module B): 2.05V' Capacitor Cell 3 Voltage (Controller Module A) (type: power) has status ok with message: 'Capacitor Cell 3 Voltage (Controller Module A): 2.05V' Capacitor Cell 3 Voltage (Controller Module B) (type: power) has status ok with message: 'Capacitor Cell 3 Voltage (Controller Module B): 2.03V' Capacitor Cell 4 Voltage (Controller Module A) (type: power) has status ok with message: 'Capacitor Cell 4 Voltage (Controller Module A): 2.08V' Capacitor Cell 4 Voltage (Controller Module B) (type: power) has status ok with message: 'Capacitor Cell 4 Voltage (Controller Module B): 2.07V' Capacitor Charge (Controller Module A) (type: currentValue) has status ok with message: 'Capacitor Charge (Controller Module A): 98%' Capacitor Charge (Controller Module B) (type: currentValue) has status ok with message: 'Capacitor Charge (Controller Module B): 98%' Power Supply 1 Voltage, 12V (type: power) has status ok with message: 'Power Supply 1 Voltage, 12V: 12.00V' Power Supply 1 Voltage, 5V (type: power) has status ok with message: 'Power Supply 1 Voltage, 5V: 5.12V' Power Supply 1 Voltage, 3.3V (type: power) has status ok with message: 'Power Supply 1 Voltage, 3.3V: 3.48V' Power Supply 2 Voltage, 12V (type: power) has status ok with message: 'Power Supply 2 Voltage, 12V: 12.04V' Power Supply 2 Voltage, 5V (type: power) has status ok with message: 'Power Supply 2 Voltage, 5V: 5.15V' Power Supply 2 Voltage, 3.3V (type: power) has status ok with message: 'Power Supply 2 Voltage, 3.3V: 3.48V' Overall Unit Status (type: other) has status ok with message: 'Overall status value: OK' HP StorageWorks MSA2012fc: OK Nota1: It should now work with SNMP V1 and V2 Nota2: People having Service check did not exit properly error messages may change the nagios command definition by adding the full path to perl executable in front of this plugin: define command{ command_name check_msa_sensors command_line /usr/bin/perl $USER1$/check_msa_hardware.pl -H $HOSTADDRESS$ -C $_HOSTSNMPCOMMUNITY$ -v 2 } This is needed because your nagios may be built with Embeded Perl in it.
Reviews (10) Add a Review
Works Great - MSA 2052
by davebyrne, May 31, 2019
Good check. Tested and confirmed working on MSA2052.

Had to install the following perl modules for it to work:
perl-Switch
perl-Net-SNMP
perl-Monitoring-Plugin
net-snmp-utils

CentOS 7
Helpful? Yes  No 
Problem
by Sheri, February 28, 2019
It works manually, but i have problem adding it in nagios
Helpful? Yes  No 
Can't locate Monitoring/Plugin.pm in @INC
by nikonier, October 31, 2018
In CentOS 7.5, it'couldn't find some modules.
You must enable the epel repository and install:
yum install perl-Monitoring-Plugin-0.38-1.el7.1.noarch
and as written below
yum install perl-Net-SNMP perl-Nagios-Plugin.

[root@testix tmp]# perl check_msa_hw.pl -C public -H 10.154.2.1
HP P2000 G3 SAS: OK
Helpful? Yes  No 
Works on HP MSA 1040
by SupraWez, December 31, 2016
Confirmed this works with HP MSA 1040 units,

Received some errors so had to install the following on CentOS 6 install to get it working :-

yum install epel-release
yum install perl-Net-SNMP perl-Nagios-Plugin

Used the following commands to determine the packages needed :-

yum provides '*/Net/SNMP.pm'
yum provides '*/Nagios/Plugin.pm'

Just trying to find a way to monitor disks now.
Helpful? Yes  No 
Nagios::Plugin module error
by noortr01, September 30, 2016
I have already a check HP MSA running on a "old" nagios server.
I like to install it on a new one. a ubuntu-14.04.4 server.
When i do a test. i get this.
-----------------
Can't locate Nagios/Plugin.pm in @INC (you may need to install the Nagios::Plugin module) (@INC contains: /usr/local/nagios/libexec /usr/lib/nagios/plugins /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ./check_msa_hardware.pl line 39.
BEGIN failed--compilation aborted at ./check_msa_hardware.pl line 39.
-------------------

i have installed Monitoring Plugins. Nagios Plugins not exist anymore.... :-(

https://www.monitoring-plugins.org/news/new-project-name.html

But i have stil the same error. How to fix this?
Helpful? Yes  No 
What about disk state ?
by lopezmathieu, October 31, 2014
Hi,
Check is good, thanks.
But what about disk state ? Passed week we have one of our 4 disks who crashed.
Would it be warned by the check ?
Thanks
Helpful? Yes  No 
Good plulgin
by symaedr, June 30, 2014
Plugin works well, tested on HP MSA 2040.
Only possible improvement is the addition of performance data.
Helpful? Yes  No 
Update?
by xcomm, March 31, 2014
Has been working great tell I updated perl, and they are removing the Switch module.
Any idea if your going to update it to not use the switch function?
Owner's Reply:

Which version of perl do you use?


Helpful? Yes  No 
MSA 2040
by mrpaulmanley, February 28, 2014
Just installed and it seems to work with an MSA 2040.
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Check works also on MSA P2000
by rokonso, November 30, 2013
Check works also on HP MSA P2000 configured with SNMP version 2. Excellent check. THNX!!!
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
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.3 (16)
Favorites
3
Views
134,266