- 论坛徽章:
- 0
|
帮我写个监视网络中计算机温度的脚本
网络中的计算机WINDOWS LINUX都有
451763407 发表于 2011-04-12 22:50 ![]()
1.
cat /proc/acpi/thermal_zone/THRM/temperature
但是有个前提条件是:
要有内核相关模块(比如I2C)支持,还要找出系统的传感器型号,然后在内核中打开相应选项。
我的可能是不满足这个前提条件,查看失败。
2.
首先确保系统中有安装lm_sensors包,安装好后直接在终端运行sensors-detect然后一路回车就行了,系统会默认启动lm_sensors服务,之后你再在终端运行sensors命令即可,就会显示CPU温度电压型号等等。
it87-isa-0290
Adapter: ISA adapter
VCore 1: +1.71 V (min = +4.08 V, max = +4.08 V) ALarm
VCore 2: +2.59 V (min = +4.08 V, max = +4.08 V) ALarm
+3.3V: +3.25 V (min = +4.08 V, max = +4.08 V) ALarm
+5V: +5.19 V (min = +6.85 V, max = +6.85 V) ALarm
+12V: +11.39 V (min = +16.32 V, max = +16.32 V) ALarm
-12V: -20.00 V (min = +3.93 V, max = +3.93 V) ALarm
-5V: +3.33 V (min = +4.03 V, max = +4.03 V) ALarm
Stdby: +5.03 V (min = +6.85 V, max = +6.85 V) ALarm
VBat: +2.03 V
fan1: 0 RPM (min = 0 RPM, div = 
fan2: 0 RPM (min = 0 RPM, div = 
fan3: 0 RPM (min = 0 RPM, div = 2)
M/B Temp: +49 C (low = -1 C, high = -1 C) sensor = thermistor
CPU Temp: +36 C (low = -1 C, high = -1 C) sensor = thermistor
Temp3: +35 C (low = -1 C, high = -1 C) sensor = diode |
|