安装模块
sudo apt-get install lm-sensors
配置zabbix-agent
vim /etc/zabbix/zabbix_agentd.conf,添加:
UserParameter=get_temp_cpu[*],sensors|grep "temp1" |cut -c 16-19
重启服务
systemctl restart zabbix-agent
配置监控项
get_temp_cpu[0]
OK.
安装模块
sudo apt-get install lm-sensors
配置zabbix-agent
vim /etc/zabbix/zabbix_agentd.conf,添加:
UserParameter=get_temp_cpu[*],sensors|grep "temp1" |cut -c 16-19
重启服务
systemctl restart zabbix-agent
配置监控项
get_temp_cpu[0]
OK.