Это старая версия документа!
GRANT SELECT ON *.* TO zabbix@localhost IDENTIFIED BY 'mypassword';
UserParameter=mysql.ping,mysqladmin -uzabbix -pmypassword ping|grep alive|wc -l UserParameter=mysql.uptime,mysqladmin -uzabbix -pmypassword status|cut -f2 -d":"|cut -f2 -d" "
zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl
chmod 440 /etc/sudoers.d/zabbix
UserParameter=cputemp,cat /sys/class/thermal/thermal_zone0/temp |awk '{print $1/1000}' UserParameter=hddtemp,sudo /usr/sbin/smartctl -A /dev/sdb | grep Temperature_Celsius | awk '{print $10}'