ESXi HP Smart Array Monitoring
Overview
Template and instructions for monitoring HP Smart Array controllers as well as physical and logical drives attached to them.
This template is based on scripts and template made by lesovsky:
https://github.com/lesovsky/zabbix-extensions/tree/master/files/hwraid-smartarray
Requirements
- VMware ESXi 5.x or newer installed, using HPE Customized ESXi image: http://www8.hp.com/us/en/products/servers/solutions.html?compURI=1499005#tab=TAB4
How it works
Due to limitations of VMWare ESXi, all items in this template are "SSH Check" based, meaning all checks are performed via SSH.
The item "ssh.run[hpraid.data.retrieval]" connects to your host and creates the file "/tmp/hp-raid-data-harvester.out" which contains all information about your controllers, disks and logical drives.
Discovery is performed by crawling through the data gathered in "/tmp/hp-raid-data-harvester.out". Discovered physical and logical devices and corresponding checks are then automatically populated for your host(s).
All scripts are located within the template which means that no configuration of your ESXi host(s) is necessary. A user with SSH access is all that is needed
Disclaimer
This template should work with any number of controllers, disks and/or logical drives, however I have only been able to test it with disks and logical drives spanning two controllers. Also, scripts, template and instructions have only been tested on VMware ESXi 6.0 update 1b.
Instructions
- Enable SSH and add an SSH user for Zabbix to use, onto your ESXi system(s), with read-only rights.
- On your ESXi system(s), edit "/etc/security/access.conf" and after the last line starting with a '+' sign, add a new line with "+:zabbixUsername:ALL".
- For persistence, add this line into "/etc/rc.local.d/local.sh" before "exit 0" to ensure "/etc/security/access.conf" is updated upon reboot:
sed -i '/root/s/.*/&\n\+:zabbixUsername:ALL/' /etc/security/access.conf - Import template "esxi_hp_smart_array.xml" into Zabbix.
- Edit template macros {$ZABBIX_SSH_USER} and {$ZABBIX_SSH_PASS}.
- Assign the template to your ESXi server(s).
Listing Details
1 version, '2016-03-01 12:16' modified