- 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
- 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 add sudo Groups:
groupadd sudo
usermod -aG sudo zabbix
visudo
Add This Line:
%sudo ALL=(ALL) NOPASSWD: ALL
In Redhat base you must diactive SELinux
setenforce 0
In Redhat base you must add firewall rouls:
firewall-cmd --add-port=10050/tcp --permanent
firewall-cmd --reload