Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
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
Owner
David Barbion
Website
http://blog.230ruedubac.fr
Download URL
https://github.com/david-barbion/monitoring/tree/master/check_msa_hardware
License
GPL
Compatible With
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.
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
It works manually, but i have problem adding it in nagios
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
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.
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?
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
Plugin works well, tested on HP MSA 2040. Only possible improvement is the addition of performance data.
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?
Which version of perl do you use?
Just installed and it seems to work with an MSA 2040.
Check works also on HP MSA P2000 configured with SNMP version 2. Excellent check. THNX!!!
You must be logged in to submit a review.
To:
From: