# Discover S.M.A.R.T. capable hard drives # The only macro returned is {#SMARTDRIVE} and value is like /dev/sda UserParameter=hardware.disk.smart.discovery,/usr/bin/sudo /var/lib/zabbix/bin/disco_smart_sudo # Takes two args: the drives to check, and the value to get # eg: hardward.disk.smart[/dev/sda,Reallocated_Sector_Ct] UserParameter=hardware.disk.smart[*],/usr/bin/sudo /var/lib/zabbix/bin/check_smart_sudo $1 $2 # New smart disk discovery/monitoring UserParameter=stor.dev.discovery[*],/usr/bin/sudo /var/lib/zabbix/bin/disco_stor_dev_sudo UserParameter=stor.dev.info[*],/usr/bin/sudo /var/lib/zabbix/bin/check_stor_dev_sudo --dev "$1" --type "$2"