Home Directory Plugins Hardware Storage Systems SAN and NAS HP Lefthand SAN/iQ hardware and software 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

HP Lefthand SAN/iQ hardware and software check

Rating
2 votes
Favoured:
0
Current Version
1.3
Last Release Date
2015-11-09
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
4892
Files:
FileDescription
check_lefthand.shCheck script
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check script for HP LeftHand SAN/iQ devices.
Gives status of hardware, drive information and array information.
Uses SNMP queries to fetch information.

Built and tested on following SAN/IQ versions
11.5.00.0673.0
12.0.00.0725.0

Will raise WARNING condition on most hardware or array based faults. Drive temperature can generate CRITICAL condition.

Usage:
./check_lefthand.sh [-v] -H host[:port] -C community [-T test type]

Options:
-h
Print detailed help screen
-H
HP Lefthand host address and optional port
-C
HP Lefthand SNMP read community. Default is 'public'
-T
Test type. Can be one of following
info - General information about the unit (default)
drives - Detailed information about the units drives
arrays - Detailed information about the units RAID arrays

Typical output from test type info:
OK System: P4500G2 MYNAS01, SN: CZJ123456A, 12 600GB SAS 3.0Gbps drives, SAN/iQ 11.5.00.0673.0|CPU_1_temp=40C;78;80 MLB_inlet_temp=18C;38;40
Cache 1 Normal
Fan1 Normal
Fan2 Normal
Fan3 Normal
Fan4 Normal
CPU (1) at 40 deg C
MLB inlet at 18 deg C
PowerSupply1 Normal
PowerSupply2 Normal

Typical output from test type drives:
OK 12 drives|Drive_1_temp=29C;55;60 Drive_2_temp=28C;55;60 Drive_3_temp=29C;55;60 Drive_4_temp=29C;55;60 Drive_5_temp=29C;55;60 Drive_6_temp=29C;55;60 Drive_7_temp=30C;55;60 Drive_8_temp=30C;55;60 Drive_9_temp=31C;55;60 Drive_10_temp=31C;55;60 Drive_11_temp=32C;55;60 Drive_12_temp=33C;55;60
Drive 1 Active (SN: JZW1ABCD, Temp: 29C, SMART health: Normal)
Drive 2 Active (SN: JZW1ABCD, Temp: 28C, SMART health: Normal)
Drive 3 Active (SN: JZW1ABCD, Temp: 29C, SMART health: Normal)
Drive 4 Active (SN: JZW1ABCD, Temp: 29C, SMART health: Normal)
Drive 5 Active (SN: JZW1ABCD, Temp: 29C, SMART health: Normal)
Drive 6 Active (SN: JZW1ABCD, Temp: 29C, SMART health: Normal)
Drive 7 Active (SN: JZW1ABCD, Temp: 30C, SMART health: Normal)
Drive 8 Active (SN: JZW1ABCD, Temp: 30C, SMART health: Normal)
Drive 9 Active (SN: JZW1ABCD, Temp: 31C, SMART health: Normal)
Drive 10 Active (SN: JZW1ABCD, Temp: 31C, SMART health: Normal)
Drive 11 Active (SN: JZW1ABCD, Temp: 32C, SMART health: Normal)
Drive 12 Active (SN: JZW1ABCD, Temp: 33C, SMART health: Normal)

Typical output from test type arrays:
OK 2 arrays|
Data Array 1 (RAID5, 6 disks, State Normal, Size 2712 GB)
Data Array 2 (RAID5, 6 disks, State Normal, Size 2724 GB)

Update history:
1.0 First release
1.2 Bug fix with return data when array was faulty
1.3 Improved error handling (if hosts are down)
Reviews (1)
byeduardohki, April 25, 2016
Hi,

Thanks for your great plugin!

I made some changes, including exiting CRITICAL state when was WARNING and sending the perfdata to the end of the output string.