Monitor HP LeftHand SAN

Overview

This will help you monitor a HP LeftHand SAN with OP5 Monitor.

For these to work the correct MIBS must be installed on the op5 Monitor server. The mibs can be downloaded here.

The MIBS needs to be renamed from *.mib to *.txt and placed in the folder /usr/share/snmp/mibs/

Add the following check commands. These lines can be added to the file /opt/monitor/etc/checkcommands.cfg or added manually into the configuration GUI.

check commands

# command 'check_lefthand_cpu_temp'define command
{
command_name
check_lefthand_cpu_temp
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o infoTemperatureSensorStatus.2 -R 1 -l "Temp is"
}
# command 'check_lefthand_fan_status'define command
{
command_name
check_lefthand_fan_status
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o infoFanStatus.$ARG1$ -R 1 -l "Fan is"
}
# command 'check_lefthand_powerambient_temp'define command
{
command_name
check_lefthand_powerambient_temp
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o infoTemperatureSensorStatus.1 -R 1 -l "Temp is"
}
# command 'check_lefthand_powersupply_status'define command
{
command_name
check_lefthand_powersupply_status
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o infoPowerSupplyStatus.$ARG2$ -R 1 -l "Power Supply is"
}
# command 'check_lefthand_qdepth'define command
{
command_name
check_lefthand_qdepth
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o storageRaidStatsQDepthTotal.0 -w 1 -c 3 -l "Queue Depth"
}#
command 'check_lefthand_queue_depth'define command
{
command_name
check_lefthand_queue_depth
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o storageRaidStatsQDepthTotal.0 -l "Queue depth is" -w $ARG2$ -c $ARG3$
}#
command 'check_lefthand_raid_status'define command{
command_name
check_lefthand_raid_status
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o storageRaidDeviceState.$ARG2$ -r "Normal" -l "RAID is"
}
# command 'check_lefthand_smart_status'define command
{
command_name
check_lefthand_smart_status
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o storageDeviceSmartHealthStatus.$ARG2$ -R 1 -l "S.M.A.R.T is"
}
# command 'check_lefthand_storage_status'define command
{
command_name
check_lefthand_storage_status
command_line
$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -P 2c -o storageDeviceStatus.$ARG2$ -R 1 -l "Device is"
}

If you added this directly to the checkcommands file, don't forget to restart OP5 Monitor.

# mon restart

Now there will be new check commands to choose from when adding checks for you HP LeftHand SAN.

Thanks to TeleData Consulting for their work on this. More info can be found at their site.

http://www.tdonline.com/training/lefthand/scripts/check_lhc.txt

http://www.tdonline.com/hp-lefthand/monitoring/service-checks-and-storage-hosts.pdf

http://www.tdonline.com/training/lefthand/