Zabbix: Monitoring Raid Linux

echo «  » >> /etc/zabbix/zabbix_agentd.conf
echo « #CONTROLLO RAID » >> /etc/zabbix/zabbix_agentd.conf
echo « UserParameter=custom.mdstat,/bin/cat /proc/mdstat | grep -c _ » >> /etc/zabbix/zabbix_agentd.conf
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, Filesystem

Trigger:
Name: RAID on {HOSTNAME}
Expression: {Template_Linux:custom.mdstat.last(0)}>0