Skip to content

Parse output of HP Smart Storage Admin CLI (ssacli) for discovering and monitoring HP Smart Array Controllers

Notifications You must be signed in to change notification settings

Soullego/zabbix-hpsa-ssacli-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Universal script for HP Smart Array RAID controller with ssacli utiliti

Capabilities:

controller, logical drives, physical drives discovery(lld);
controller, logical drives, physical drives health;
Active item data collection.

Installation notes:

Copy script to /etc/zabbix/scripts/ directory
Copy userparameter_hpsa.conf to your /etc/zabbix/zabbix_agentd.d/ directory
Configure template in Zabbix front-end
Add sudoers for zabbix user

Tested on:

HP Smart Array P410i

ssacli command output examples:

  1. ssacli ctrl all show config

Smart Array P410i in Slot 0 (Embedded)    (sn: 5001438010F4F810)



   Internal Drive Cage at Port 1I, Box 1, OK


   Port Name: 1I

   Port Name: 2I

   Array A (SATA, Unused Space: 0  MB)

      logicaldrive 1 (931.48 GB, RAID 1, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA HDD, 1 TB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA HDD, 1 TB, OK)


   Array B (SATA, Unused Space: 0  MB)

      logicaldrive 2 (1.82 TB, RAID 1, OK)

      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SATA HDD, 2 TB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SATA HDD, 2 TB, OK)

   SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250  (WWID: 5001438010F4F81F)

  1. ssacli ctrl slot=0 show status
Smart Array P410i in Slot 0 (Embedded)
   Controller Status: OK
   Cache Status: OK
  1. ssacli ctrl slot=0 ld 1 show status
   logicaldrive 1 (931.48 GB, RAID 1): OK
  1. ssacli ctrl slot=0 pd 1I:1:1 show status
   physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 1 TB): OK

ref: https://docs.kernel.org/scsi/hpsa.html https://gist.github.com/mrpeardotnet/a9ce41da99936c0175600f484fa20d03 https://ittricks.ru/administrirovanie/cheat-sheets/569/rabota-s-diskovym-massivom-hp-cherez-util https://ru-tld.ru/h/help_system:servera:raid:nastroika-hpssacli

About

Parse output of HP Smart Storage Admin CLI (ssacli) for discovering and monitoring HP Smart Array Controllers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages