Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lm-sensors data in SNMP mismatching sensors output

9 views
Skip to first unread message

Mario Aeby

unread,
Dec 15, 2009, 5:48:33 PM12/15/09
to
Dear all

I've recently set up a new home server and would like to collect
sensor data with Cacti through SNMP. The motherboard is an Asus P5QPL-
VM EPU; running Debian (2.6.30-2-686). The following packages are
installed:

- --
$ dpkg --list | grep -i snmp
ii libsnmp-base
5.4.2.1~dfsg-4 SNMP (Simple Network Management
Protocol) MIBs and documentation
ii libsnmp-session-perl
1.13-1 Perl support for accessing SNMP-
aware devices
ii libsnmp15
5.4.2.1~dfsg-4 SNMP (Simple Network Management
Protocol) library
ii php5-snmp 5.2.11.dfsg.
1-2 SNMP module for php5
ii snmp
5.4.2.1~dfsg-4 SNMP (Simple Network Management
Protocol) applications
ii snmpd
5.4.2.1~dfsg-4 SNMP (Simple Network Management
Protocol) agents

$ dpkg --list | grep -i sensor
ii libsensors3
1:2.10.8-2 library to read temperature/
voltage/fan sensors
ii libsensors4
1:3.1.1-4 library to read temperature/
voltage/fan sensors
ii lm-sensors
1:3.1.1-4 utilities to read temperature/
voltage/fan sensors
ii sensord
1:3.1.1-4 hardware sensor information
logging daemon
- --

lm-sensors is correctly installed and spits out reasonable data:

- --
$ sensors
atk0110-acpi-0
Adapter: ACPI interface
VCore: +1.08 V (min = +0.85 V, max = +1.60 V)
+3.3V: +3.38 V (min = +2.97 V, max = +3.63 V)
+5V: +5.12 V (min = +4.50 V, max = +5.50 V)
+12V: +12.51 V (min = +10.20 V, max = +13.80 V)
CPU Fan: 1739 RPM (min = 600 RPM)
Case Fan: 1318 RPM (min = 600 RPM)
PSU Fan: 1646 RPM (min = 1800 RPM)
CPU Temp: +26.0°C (high = +60.0°C, crit = +95.0°C)
MB Temp: +27.0°C (high = +45.0°C, crit = +95.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0: +32.0°C (high = +76.0°C, crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1: +40.0°C (high = +76.0°C, crit = +100.0°C)
- --

But when I walk through the SNMP results, I only can see this:

- --
$ snmpwalk -c public -v 1 localhost sensors
LM-SENSORS-MIB::lmVoltSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmVoltSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmVoltSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmVoltSensorsDevice.1 = STRING: VCore
LM-SENSORS-MIB::lmVoltSensorsDevice.2 = STRING: VCore
LM-SENSORS-MIB::lmVoltSensorsDevice.3 = STRING: VCore
LM-SENSORS-MIB::lmVoltSensorsValue.1 = Gauge32: 1080
LM-SENSORS-MIB::lmVoltSensorsValue.2 = Gauge32: 849
LM-SENSORS-MIB::lmVoltSensorsValue.3 = Gauge32: 1600
LM-SENSORS-MIB::lmMiscSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmMiscSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmMiscSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmMiscSensorsIndex.4 = INTEGER: 3
LM-SENSORS-MIB::lmMiscSensorsIndex.5 = INTEGER: 4
LM-SENSORS-MIB::lmMiscSensorsIndex.6 = INTEGER: 5
LM-SENSORS-MIB::lmMiscSensorsIndex.7 = INTEGER: 6
LM-SENSORS-MIB::lmMiscSensorsIndex.8 = INTEGER: 7
LM-SENSORS-MIB::lmMiscSensorsDevice.1 = STRING: Core 0
LM-SENSORS-MIB::lmMiscSensorsDevice.2 = STRING: Core 0
LM-SENSORS-MIB::lmMiscSensorsDevice.3 = STRING: Core 0
LM-SENSORS-MIB::lmMiscSensorsDevice.4 = STRING: Core 0
LM-SENSORS-MIB::lmMiscSensorsDevice.5 = STRING: Core 1
LM-SENSORS-MIB::lmMiscSensorsDevice.6 = STRING: Core 1
LM-SENSORS-MIB::lmMiscSensorsDevice.7 = STRING: Core 1
LM-SENSORS-MIB::lmMiscSensorsDevice.8 = STRING: Core 1
LM-SENSORS-MIB::lmMiscSensorsValue.1 = Gauge32: 32000
LM-SENSORS-MIB::lmMiscSensorsValue.2 = Gauge32: 76000
LM-SENSORS-MIB::lmMiscSensorsValue.3 = Gauge32: 100000
LM-SENSORS-MIB::lmMiscSensorsValue.4 = Gauge32: 0
LM-SENSORS-MIB::lmMiscSensorsValue.5 = Gauge32: 40000
LM-SENSORS-MIB::lmMiscSensorsValue.6 = Gauge32: 76000
LM-SENSORS-MIB::lmMiscSensorsValue.7 = Gauge32: 100000
LM-SENSORS-MIB::lmMiscSensorsValue.8 = Gauge32: 0
- --

What do I have to do to get the "real" data (values and legends) into
SNMP? There's a complete mismatch and I can't figure out where from
net-snmp pulls this weird data.

Thank you for your support!
Best regards
Mario
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

0 new messages