- auto-discovery for all active MDs
- no assumption made about MD name
- currently, only two HDD/SSD reported as members of the array
- trigger is constructed to monitor RAID State.
- to avoid flipping, the trigger will fire if state change sustain for more than one collection cycle
- Agent:
Debian 12,zabbix-agent2 6.0.14; Server:Docker zabbix/zabbix-web-nginx-pgsql:7.2.3-ubuntu
- indtroduce items: failed device, number of failed devices
- auto-discover array devices
UserParameter=mdraid[*], sudo /usr/local/bin/zabbix_mdraid.sh -m'$1' -$2'$3'
UserParameter=mdraid.discovery, sudo /usr/local/bin/zabbix_mdraid.sh -D
don't forget to add zabbix user to sudoers
- https://www.kernel.org/doc/Documentation/md.txt
- http://unix.stackexchange.com/questions/47163/whats-the-difference-between-mdadm-state-active-and-state-clean
- Zabbix LSI RAID template https://www.zabbix.com/wiki/templates/start