1、安装硬件传感器监控软件sensors
yum install -y lm_sensors*
2、运行sensors-detect进行传感器检测
##一路回车即可
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
Starting lm_sensors: loading module coretemp [ OK ]
Unloading i2c-dev... OK
3、运行sensors看是否能读取数据,如下像下面这样表示正常
# sensors
coretemp-isa-0000
Adapter: ISA adapter
ERROR: Can't get value of subfeature temp1_input: Can't read
Physical id 0: +0.0°C (high = +100.0°C, crit = +100.0°C)
ERROR: Can't get value of subfeature temp2_input: Can't read
Core 0: +0.0°C (high = +100.0°C, crit = +100.0°C)
ERROR: Can't get value of subfeature temp3_input: Can't read
Core 1: +0.0°C (high = +100.0°C, crit = +100.0°C)
coretemp-isa-0002
Adapter: ISA adapter
ERROR: Can't get value of subfeature temp1_input: Can't read
Physical id 1: +0.0°C (high = +100.0°C, crit = +100.0°C)
ERROR: Can't get value of subfeature temp2_input: Can't read
Core 0: +0.0°C (high = +100.0°C, crit = +100.0°C)
ERROR: Can't get value of subfeature temp3_input: Can't read
Core 1: +0.0°C (high = +100.0°C, crit = +100.0°C)
nagios系列(六)之nagios实现对服务器cpu温度的监控
最新推荐文章于 2022-01-13 16:35:51 发布