Net-SNMP中缺少CPU核心

前端之家收集整理的这篇文章主要介绍了Net-SNMP中缺少CPU核心前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一台运行OEL(RHEL)6.4的双Intel Xeon E5-2667 cpu(6核HT)的服务器
由于某种原因,snmp查询显示只有1个cpu的内核.

这是输出传感器命令.

[root@host log]# sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +56.0°C  (high = +96.0°C,crit = +102.0°C)
Core 0:        +55.0°C  (high = +96.0°C,crit = +102.0°C)
Core 1:        +50.0°C  (high = +96.0°C,crit = +102.0°C)
Core 2:        +52.0°C  (high = +96.0°C,crit = +102.0°C)
Core 3:        +55.0°C  (high = +96.0°C,crit = +102.0°C)
Core 4:        +52.0°C  (high = +96.0°C,crit = +102.0°C)
Core 5:        +56.0°C  (high = +96.0°C,crit = +102.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Physical id 1: +43.0°C  (high = +96.0°C,crit = +102.0°C)
Core 0:        +43.0°C  (high = +96.0°C,crit = +102.0°C)
Core 1:        +41.0°C  (high = +96.0°C,crit = +102.0°C)
Core 2:        +42.0°C  (high = +96.0°C,crit = +102.0°C)
Core 3:        +41.0°C  (high = +96.0°C,crit = +102.0°C)
Core 4:        +40.0°C  (high = +96.0°C,crit = +102.0°C)
Core 5:        +41.0°C  (high = +96.0°C,crit = +102.0°C)

我的/etc/snmp/snmpd.conf有以下行允许完全访问:

view all    included  .1                               80

然而,当我sniftwalk这台服务器时会发生什么:

[root@host log]# snmpwalk -c public -v 2c localhost sensor
LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 1
LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 2
LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 3
LM-SENSORS-MIB::lmTempSensorsIndex.4 = INTEGER: 4
LM-SENSORS-MIB::lmTempSensorsIndex.5 = INTEGER: 5
LM-SENSORS-MIB::lmTempSensorsIndex.6 = INTEGER: 6
LM-SENSORS-MIB::lmTempSensorsIndex.7 = INTEGER: 7
LM-SENSORS-MIB::lmTempSensorsIndex.8 = INTEGER: 8
LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: Physical id 0
LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: Core 0
LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: Core 1
LM-SENSORS-MIB::lmTempSensorsDevice.4 = STRING: Core 2
LM-SENSORS-MIB::lmTempSensorsDevice.5 = STRING: Core 3
LM-SENSORS-MIB::lmTempSensorsDevice.6 = STRING: Core 4
LM-SENSORS-MIB::lmTempSensorsDevice.7 = STRING: Core 5
LM-SENSORS-MIB::lmTempSensorsDevice.8 = STRING: Physical id 1
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 60000
LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 44000
LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 42000
LM-SENSORS-MIB::lmTempSensorsValue.4 = Gauge32: 42000
LM-SENSORS-MIB::lmTempSensorsValue.5 = Gauge32: 42000
LM-SENSORS-MIB::lmTempSensorsValue.6 = Gauge32: 41000
LM-SENSORS-MIB::lmTempSensorsValue.7 = Gauge32: 41000
LM-SENSORS-MIB::lmTempSensorsValue.8 = Gauge32: 44000

如何在所有cpu上为内核设置snmp报告温度?

解决方法

似乎有些东西是关闭的,因为你有这条线:
LM-SENSORS-MIB::lmTempSensorsDevice.8 = STRING: Physical id 1

但之后没有任何东西,好像只有8个传感器插槽.拥有双Intel Xeon E5-2670(8核)的a bug report,其中最后一个Device系列如下:

LM-SENSORS-MIB::lmTempSensorsDevice.10 = STRING: Physical id 1

所以那里有10个插槽,同样只有一个处理器.

some Ubuntu instructions成功显示20个插槽(没有“物理ID”线),虽然有完全不同的处理器和使用miscSensors类别.他们说“根据lm-sensors安装页面,需要Net-SNMP 5.5或更高版本”,这是RedHat 6.4上的版本.

在任何情况下,您都可以尝试升级Net-SNMP,看看是否能解决问题.但也许它真的是MIB和特定系列处理器的问题,在这种情况下需要解决该bug.

原文链接:https://www.f2er.com/linux/397932.html

猜你在找的Linux相关文章