Re: net-snmp can't read lm_sensors' values

Axel Thimm <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Wed, Nov 09, 2005 at 07:35:19PM +0530, Ramachandrappa, Nataraju Karidasarahalli wrote:
> Hi,
> 
> I think you are access the data from the table.
> If u r access the data from the table u have to give snmpwalk -v 2c -c
> public localhost tablename.

That's what I had done, and posted in the original post.

> Thanks
> nataraju
> 
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Axel
> Thimm
> Sent: Wednesday, November 09, 2005 6:40 PM
> To: [email protected]
> Subject: net-snmp can't read lm_sensors' values
> 
> 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)

iD8DBQFDcwO6QBVS1GOamfERAgjjAJ9wEHGSb/hOrgHpmAbkWCNJLski2ACdHIx+
UprxD726LEnm4UMvq9D6o7o=
=OPnQ
-----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.