Disk/RAID Monitoring for HP Proliant Servers and Ubuntu 12.04

Grrr... Ubuntu. :)

What type of HP ProLiant server is this? (model and generation, please)

Your drive device will vary depending on your Smart Array controller. With the move from G5 to G6 servers, the HP RAID controller driver changed from the legacy CCISS driver to the new HPSA driver. With the newer driver, you won't see the CCISS block driver... Devices will be /dev/sdX.

Regardless, your key to monitoring Smart Array RAID controllers is to install the HP Management Agents. At the very least, you'll want the hpacucli command line utility. Ubuntu and Debian have always had less official support from HP than the Red Hat/SuSE. However, there is a Debian ProLiant Support Pack that includes agents and tools for Ubuntu/dpkg systems.

That' more of a comprehensive approach that can generate SNMP traps and nifty email alerts. In order to just get the RAID configuration and management software, pull the hpacucli utility down from HP's repository.

You may need to also apt-get install lib32gcc1 lib32stdc++6 libc6-i386 to meet 32-bit prerequisites.

From there, you can use some common hpacucli commands to obtain RAID status. An easy example:

[root@Woot ~]# hpacucli ctrl all show config       

Smart Array P410i in Slot 0 (Embedded)    (sn: 500143801664FE50)

   array A (SAS, Unused Space: 0  MB)


      logicaldrive 1 (279.4 GB, RAID 1, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
      physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 300 GB, OK)

   array B (Solid State SATA, Unused Space: 0  MB)


      logicaldrive 2 (447.1 GB, RAID 1+0, OK)

      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, Solid State SATA, 240.0 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, Solid State SATA, 240.0 GB, OK)
      physicaldrive 2I:1:7 (port 2I:box 1:bay 7, Solid State SATA, 240.0 GB, OK)
      physicaldrive 2I:1:8 (port 2I:box 1:bay 8, Solid State SATA, 240.0 GB, OK)

   SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250 (WWID: 500143801664FE5F)

The steps as follows is what I did to get it working for Ubuntu 16.04.

echo 'deb http://downloads.linux.hpe.com/SDR/repo/mcp xenial/current non-free' > /etc/apt/sources.list.d/hp.list
apt-get update
apt-get install hpacucli hp-health hponcfg hp-ams hp-snmp-agents hpmh hpsmh hpssaducli hpssa