RE: lm-sensors

k lan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>

> 
> 2009/7/26 k lan <[email protected]>:
> > using the 5.4.2.1.tar.gz and, compiling with
> > --with-mib-modules="ucd-snmp/lmSensors
> > I end up with this;
> >
> 
> > ucd-snmp/lmSensors.c: In function ‘_sensor_load’:
> > ucd-snmp/lmSensors.c:943: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> > ‘__attribute__’ before ‘*’ token
> > ucd-snmp/lmSensors.c:943: error: ‘data’ undeclared (first use in this
> > function)
>    [snip]
> 
> 
> Which version of the sensors library are you using?   v2 or v3?
> The 'ucd-snmp/lmSensors' module is written for the v2 library.
> v3 has seen significant (incompatible) changes, and won't work
> with this code.
> 
> You *might* have better luck configuring to use 'ucd-snmp/lmsensorsMib',
> although you will also need to tweak the file 'hardware/sensors.h' first
> to reference 'lmsensors_v3' instead of 'lmsensors_v2'.
> 
> Also note that this particular code is untested as yet, as it's only in the
> last month or so that I've finally got a system with the v3 library installed.
> 
> Let us know how you get on.
> 
> Dave

The Ubuntu 9.04 test system (Dell laptop) currently has net-snmp v 5.4.1 operational on it and lmsensors v 3.1.1.
I'm attempting to compile from 5.4.2.1.tar.gz.
the net-snmp-5.4.2.1/..../ucd-snmp/ folder doesn't have lmsensorsMib.h or .c, and I looked at all three of the sensors.h files on the system in the 5.4.2.1 folder as well as the operational /usr/local/ folder and none of them have a reference for lmsensors_v3 or v2.
Am I missing something?
I'm only barely Linux literate, and I'm unsure if the net-snmp patch applies here, or, for that matter, other than reading about the patch command, I'm unsure of when or how the patch would be applied.
If necessary, perhaps I need to obtain a v2 tar of lm_sensors and then compile net-snmp against that?
I don't mind testing if you need.


_________________________________________________________________
Get free photo software from Windows Live
http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.