# 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