To monitor software RAID in Zabbix 1.8 you need to make following changes in Zabbix:
in /etc/zabbix/zabbix-agent*.conf on client
add in the end of the file:
#CONTROLLO RAID
UserParameter=custom.mdstat,/bin/cat /proc/mdstat | grep -c _
You need to restart zabbix Agent
sudo service zabbix-agent restart
On the Zabbix server add to the Linux Template:
Items:
Host: Template_Linux
Description: MDStat
Type: Zabbix_agent
Key: custom.mdstat
Applications: Availability, FilesystemTrigger:
Name: RAID on {HOSTNAME}
Expression: {Template_Linux:custom.mdstat.last(0)}>0
This is tested on Ubuntu servers with:
RAID 1 with 2 disks
RAID 5 with 4 and 6 disks
RAID 6 with 8 disks
Leave a Reply