Home Directory Plugins Hardware Storage Systems SAN and NAS HP 3PAR Storage Monitor - Health Check

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

HP 3PAR Storage Monitor - Health Check

Current Version
1.1
Last Release Date
2017-11-29
Owner
License
MIT
Hits
15702
Files:
FileDescription
check_3par.plHP 3PAR perl ckeck script
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!
Perl script uses Expect to login to 3par service processor via ssh.
There is no additional software required. Can be used for nagios, op5, etc. monitoring.
3par-monitor

HP 3PAR Storage Monitor - Health Check

SYNOPSIS

check_3par.pl CHECK_COMMAND [3PAR_IP/NAME] [USER] [PASS]

CHECK_COMMAND

check_pd
Shows state information about system's physical disks.

check_node
Shows state information for nodes or power supply.

check_vv
Shows state information about virtual volumes (VVs) in the system.

showalert
Displays the status of system alerts.

DESCRIPTION

Perl script uses Expect to login to 3par service processor via ssh. There is
no additional software required. Can be used for nagios, op5, etc. monitoring.
EXAMPLES

#> check_3par.pl check_pd 3par-sp.mycompany.net monitor monitor123

Output:

OK! 272 PDs online.
CRITICAL! PDs in FAILED status (check 'showpd -failed'): 8 (0:8:0),
WARNING! PDs in DEGRADED status (check 'showpd -degraded'): 8 (0:8:0),
INFO! PDs in NEW status (check 'showpd -state'): 3 (0:3:0),
CRITICAL! PDs in FAILED status (check 'showpd -failed'): 8 (0:8:0), WARNING! PDs in DEGRADED status (check 'showpd -degraded'): 6 (0:6:0), 7 (0:7:0),
8 (0:8:0) => ID (CagePos)

#> check_3par.pl check_node 3par-sp.mycompany.net monitor monitor123

Output:

OK! nodes online.
CRITICAL! nodes in FAILED status (check 'shownode -state'): 2 (pci_error, unknown),
WARNING! nodes in DEGRADED status (check 'shownode -state'): 1 (cpu_vrm_overheating,tod_bat_fail),
CRITICAL! nodes in FAILED status (check 'shownode -state'): 2 (pci_error, unknown), WARNING! nodes in DEGRADED status (check 'shownode -state'): 1 (cpu_vrm_overheating,tod_bat_fail),
2 (pci_error, unknown) => NODE_ID (Detailed_State)

#> check_3par.pl check_vv 3par-sp.mycompany.net monitor monitor123

Output:

OK! 130 VVs online.
CRITICAL! VVs in FAILED status (check 'showvv -state'): 7 (fc_vol.1),
WARNING! VVs in DEGRADED status (check 'showvv -state'): 1 (.srdata),
CRITICAL! VVs in FAILED status (check 'showvv -state'): 7 (fc_vol.1), 8 (fc_vol.2), WARNING! VVs in DEGRADED status (check 'showvv -state'): 1 (.srdata), 9 (fc_vol.3),
7 (fc_vol.1) => VV_ID (VV_NAME)

#> check_3par.pl showalert 3par-sp.mycompany.net monitor monitor123

Output:

OK! No new alerts.
CRITICAL! Alerts with severity Fatal, Critical or Major (check 'showalert -n'),
WARNING! Alerts with severity DEGRADED (check 'showalert -n'),

TODO

showbattery showcpg showcage showport
Reviews (1)
bynav18, August 20, 2019
I get this error when I run the script :

Can't locate Expect.pm in @INC (@INC contains: /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_3par.pl line 67.
BEGIN failed--compilation aborted at ./check_3par.pl line 67.
Owner's reply

It looks like you don't have Expect perl module installed. depending on your Operation System you could install it with yum, apt-get, etc. Or get it directly from CPAN: https://metacpan.org/pod/Expect