Я пытаюсь выяснить, как получить SNMP в системе CentOS 8, чтобы сообщать такие вещи, как температура процессора и скорость вращения вентилятора. Я нашел несколько учебных пособий в Интернете и поговорил с людьми в IRC, но ничего не добился. Насколько мы можем судить, мы должны увидеть lmSensors nodes
когда мы делаем snmpwalk, но мы этого не делаем. Согласно этому сообщению (https://access.redhat.com/errata/RHSA-2015:1385), SNMP, не сообщающий о датчиках, был исправлен давно, хотя мог быть и регресс.
Установлены следующие пакеты:
Пробовали все виды диагностики, но ничего не помогло. Мы пробовали:
init_mib: Seen MIBDIRS: Looking in '/root/.snmp/mibs:/usr/share/snmp/mibs' for mib dirs...
libsensors.so.4 => /lib64/libsensors.so.4 (0x00007f37cf2af000)
sensors-detect
, а sensors
команда работает.snmpconf
и удостоверился, что там есть соответствующее ро-сообщество. snmpwalk -v 2c -c public localhost
работает, но не перечисляет никаких узлов lmSensors, а также не работает блок 1.3.6.1.4.1.2021.13.16.У людей в IRC закончились идеи, поэтому я решил спросить здесь, есть ли у кого-нибудь другие идеи, которые можно попробовать. Спасибо!
[Строки, не являющиеся комментариями]
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
access notConfigGroup "" any noauth exact systemview none none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
dontLogTCPWrappersConnects yes
rocommunity public
# libsensors configuration file
# -----------------------------
#
# This default configuration file only includes statements which do not
# differ from one mainboard to the next. Only label, compute and set
# statements for internal voltage and temperature sensors are included.
#
# In general, local changes should not be added to this file, but rather
# placed in custom configuration files located in /etc/sensors.d. This
# approach makes further updates much easier.
#
# Such custom configuration files for specific mainboards can be found in
# "configs" directory of lm-sensors package.
#
# Please contribute back a configuration of your board so other users with
# the same hardware won't need to recreate it again and again.
chip "lm78-*" "lm79-*" "lm80-*" "lm96080-*"
label temp1 "M/B Temp"
chip "w83792d-*"
label in0 "VcoreA"
label in1 "VcoreB"
label in6 "+5V"
label in7 "5VSB"
label in8 "Vbat"
set in6_min 5.0 * 0.90
set in6_max 5.0 * 1.10
set in7_min 5.0 * 0.90
set in7_max 5.0 * 1.10
set in8_min 3.0 * 0.90
set in8_max 3.0 * 1.10
chip "w83793-*"
label in0 "VcoreA"
label in1 "VcoreB"
label in7 "+5V"
label in8 "5VSB"
label in9 "Vbat"
set in7_min 5.0 * 0.90
set in7_max 5.0 * 1.10
set in8_min 5.0 * 0.90
set in8_max 5.0 * 1.10
set in9_min 3.0 * 0.90
set in9_max 3.0 * 1.10
chip "w83795g-*" "w83795adg-*"
label in12 "+3.3V"
label in13 "3VSB"
label in14 "Vbat"
set in12_min 3.3 * 0.90
set in12_max 3.3 * 1.10
set in13_min 3.3 * 0.90
set in13_max 3.3 * 1.10
set in14_min 3.0 * 0.90
set in14_max 3.3 * 1.10
chip "via686a-*"
label in0 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
chip "adm1025-*" "ne1619-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "VCC"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
# Depending on how your chip is hardwired, you may or may not have
# +12V readings.
# set in4_min 12.0 * 0.90
# set in4_max 12.0 * 1.10
label temp1 "CPU Temp"
label temp2 "M/B Temp"
chip "lm87-*" "adm1024-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
label temp1 "M/B Temp"
label temp2 "CPU Temp"
chip "it87-*" "it8712-*" "it8716-*" "it8718-*" "it8720-*"
label in8 "Vbat"
chip "fscpos-*" "fscher-*"
#FSC "Hermes"
label in0 "+12V"
label in1 "+5V"
label in2 "Vbat"
label temp1 "CPU Temp"
label temp2 "M/B Temp"
label temp3 "Aux Temp"
chip "fscscy-*"
#FSC "Scylla"
label in0 "+12V"
label in1 "+5V"
label in2 "+3.3V"
label temp1 "CPU0 Temp"
label temp2 "CPU1 Temp"
label temp3 "M/B Temp"
label temp4 "Aux Temp"
chip "fschds-*"
# Fujitsu Technology Solutions, "Hades"-Chip
# Temperatures
label temp1 "CPU Temp"
label temp2 "Super I/O Temp"
label temp3 "System Temp"
# Fans
label fan1 "PSU Fan"
label fan2 "CPU Fan"
label fan3 "System FAN2"
label fan4 "System FAN3"
label fan5 "System FAN4"
# Voltages
label in0 "+12V"
label in1 "+5V"
label in2 "Vbat"
chip "fscsyl-*"
# Fujitsu Technology Solutions, "Syleus"-Chip
# Temperatures
label temp1 "CPU Temp"
label temp4 "Super I/O Temp"
label temp5 "Northbridge Temp"
# Fans
label fan1 "CPU Fan"
label fan2 "System FAN2"
label fan3 "System FAN3"
label fan4 "System FAN4"
label fan7 "PSU Fan"
# Voltages
label in0 "+12V"
label in1 "+5V"
label in2 "Vbat"
label in3 "+3.3V"
label in5 "+3.3V-Aux"
chip "vt1211-*"
label in5 "+3.3V"
label temp2 "SIO Temp"
chip "vt8231-*"
label in5 "+3.3V"
chip "smsc47m192-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "VCC"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
label temp1 "SIO Temp"
chip "lm85-*" "lm85b-*" "lm85c-*" "adm1027-*" "adt7463-*" "adt7468-*" \
"emc6d100-*" "emc6d102-*" "emc6d103-*" "emc6d103s-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
# Depending on how your chip is hardwired, you may or may not have
# +12V readings.
# set in4_min 12.0 * 0.90
# set in4_max 12.0 * 1.10
label temp2 "M/B Temp"
chip "emc6w201-*"
label in2 "+3.3V"
label in3 "+5V"
label temp6 "M/B Temp"
chip "pc87365-*" "pc87366-*"
# Voltage inputs
label in7 "3VSB"
label in8 "VDD"
label in9 "Vbat"
label in10 "AVDD"
compute in7 @*2, @/2
compute in8 @*2, @/2
compute in10 @*2, @/2
# These are the operating conditions as recommended by National
# Semiconductor
set in7_min 3.0
set in7_max 3.6
set in8_min 3.0
set in8_max 3.6
set in10_min 3.0
set in10_max 3.6
# Depending on the hardware setup, the battery voltage may or may not
# be monitored.
# set in9_min 2.4
# set in9_max 3.6
label temp3 "SIO Temp"
set temp3_min 0
set temp3_max 70
set temp3_crit 85
chip "adm1030-*" "adm1031-*"
label temp1 "M/B Temp"
chip "w83627thf-*"
label in3 "+5V"
label in7 "5VSB"
label in8 "Vbat"
# Internal resistors
compute in3 @ * (1 + 34/51), @ / (1 + 34/51)
compute in7 @ * (1 + 34/51), @ / (1 + 34/51)
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in7_min 5.0 * 0.90
set in7_max 5.0 * 1.10
# The battery voltage may or may not be monitored.
# set in8_min 3.0 * 0.90
# set in8_max 3.0 * 1.10
chip "w83627ehf-*" "w83627dhg-*" "w83667hg-*" "nct6775-*" "nct6776-*" "nct6779-*" "nct6791-*" "nct6795-*"
label in0 "Vcore"
label in2 "AVCC"
label in3 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 3.3 * 0.90
set in3_max 3.3 * 1.10
set in7_min 3.3 * 0.90
set in7_max 3.3 * 1.10
set in8_min 3.0 * 0.90
set in8_max 3.3 * 1.10
chip "w83627uhg-*"
label in2 "AVCC"
label in3 "+5V"
label in7 "5VSB"
label in8 "Vbat"
set in2_min 5.0 * 0.90
set in2_max 5.0 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in7_min 5.0 * 0.90
set in7_max 5.0 * 1.10
set in8_min 3.0 * 0.90
set in8_max 3.3 * 1.10
chip "f71805f-*"
label in0 "+3.3V"
set in0_min 3.3 * 0.90
set in0_max 3.3 * 1.10
chip "f71872f-*"
label in0 "+3.3V"
label in9 "Vbat"
label in10 "3VSB"
set in0_min 3.3 * 0.90
set in0_max 3.3 * 1.10
set in9_min 3.0 * 0.90
set in9_max 3.0 * 1.10
set in10_min 3.3 * 0.90
set in10_max 3.3 * 1.10
chip "k8temp-*"
label temp1 "Core0 Temp"
label temp2 "Core0 Temp"
label temp3 "Core1 Temp"
label temp4 "Core1 Temp"
chip "dme1737-*"
label in0 "5VSB"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "3VSB"
label in6 "Vbat"
label temp2 "SIO Temp"
set in0_min 5.0 * 0.90
set in0_max 5.0 * 1.10
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
set in6_min 3.0 * 0.90
set in6_max 3.0 * 1.10
chip "sch311x-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "3VSB"
label in6 "Vbat"
label temp2 "SIO Temp"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
set in4_min 12.0 * 0.90
set in4_max 12.0 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
set in6_min 3.0 * 0.90
set in6_max 3.0 * 1.10
chip "sch5027-*"
label in0 "5VSB"
label in1 "Vcore"
label in2 "+3.3V"
label in5 "3VSB"
label in6 "Vbat"
label temp2 "SIO Temp"
set in0_min 5.0 * 0.90
set in0_max 5.0 * 1.10
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
set in6_min 3.0 * 0.90
set in6_max 3.0 * 1.10
chip "sch5127-*"
label in2 "+3.3V"
label in5 "3VSB"
label in6 "Vbat"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in5_min 3.3 * 0.90
set in5_max 3.3 * 1.10
set in6_min 3.0 * 0.90
set in6_max 3.0 * 1.10
chip "f71808e-*" "f71808a-*" "f71862fg-*" "f71869-*" "f71869a-*" "f71882fg-*" \
"f71889fg-*" "f71889ed-*" "f71889a-*"
label in0 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"
compute in0 @*2, @/2
compute in7 @*2, @/2
compute in8 @*2, @/2
chip "f71858fg-*" "f8000-*"
label in0 "+3.3V"
label in1 "3VSB"
label in2 "Vbat"
compute in0 @*2, @/2
compute in1 @*2, @/2
compute in2 @*2, @/2
chip "f71868a-*"
label in0 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"
label in9 "5VSB"
compute in0 @*2, @/2
compute in7 @*2, @/2
compute in8 @*2, @/2
compute in9 @*3, @/3
chip "f81865f-*"
label in0 "+3.3V"
label in5 "3VSB"
label in6 "Vbat"
compute in0 @*2, @/2
compute in5 @*2, @/2
compute in6 @*2, @/2
chip "adt7473-*" "adt7475-*"
label in2 "+3.3V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
label temp2 "Board Temp"
chip "adt7476-*" "adt7490-*"
label in1 "Vcore"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 5.0 * 0.90
set in3_max 5.0 * 1.10
# Depending on how your ADT7476 is hardwired, you may or may not have
# +12V readings.
# set in4_min 12.0 * 0.90
# set in4_max 12.0 * 1.10
label temp2 "M/B Temp"