net-snmp can't read lm_sensors' values

Axel Thimm <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

lm_sensors has been configured and "sensors" returns some
values. Using net-snmp to export these one gets

# snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.13.16.2.1.1
LM-SENSORS-MIB::lmTempSensorsIndex = No more variables left in this
MIB View (It is past the end of the MIB tree)

Smaller OIDs, e.g. .1.3.6.1.4.1.2021.13.16 or a full walk don't give
anything further.

Running with -DALL gives:

[...]
mib_init: initializing: lmSensors
trace: _sensor_load(): ucd-snmp/lmSensors.c, 307:
sensors: sensor -1785654644, value 1520
trace: _sensor_load(): ucd-snmp/lmSensors.c, 307:
sensors: sensor -1785654576, value 1536
trace: _sensor_load(): ucd-snmp/lmSensors.c, 307:
sensors: sensor -1785654508, value 3360
trace: _sensor_load(): ucd-snmp/lmSensors.c, 307:
sensors: sensor -1785654440, value 5053
[...]
trace: _sensor_load(): ucd-snmp/lmSensors.c, 307:
sensors: sensor -1785663012, value 0
trace: _sensor_load(): ucd-snmp/lmSensors.c, 307:
sensors: sensor -1785662944, value 0
too many sensors. ignoring CPU


and later:

LM-SENSORS-MIB::lmTempSensorsIndex = Wrong Type (should be INTEGER):
NULL

This is on net-snmp 5.1.2 and 5.2.1.2 (RHEL4 and FC4).

How can I get lmSensors to work?

See also https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=171000

Thanks!
-- 
Axel.Thimm at ATrpms.net
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDcfUUQBVS1GOamfERArhEAJ9A2au3oaL3LJItED8Do1+zMhDwpACgie7T
U7eLBN1OQfgPPFis1x3pN2g=
=5pRV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.