Re: lm_sensor
rangeli nepal <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Thank you Dave,
Typing wise it was one of the smallest change.
I edited
../agent/mibgroup/hardware/sensors.h
put
config_require(hardware/sensors/lmsensors_v3)
after reconfiguring and recompiling it works.
Since this is the first time I saw the net-snmp code ( lmsensors_v3.c)
void netsnmp_sensor_arch_init( void ) {
FILE *fp = fopen("/etc/sensors.conf", "r");
DEBUGMSGTL(("sensors:arch", "Initialise v3 LM Sensors module\n"));
sensors_init( fp );
}
However when I install lm_sensor it creates file sensors3.conf in /etc
directory. I believe it acts as configuration file for lm_sensor.
Thus for net-snmp to work properly we need to create a file with
/etc/sensors.conf havin symbolic link with sensors3.conf.?
just wondering
rn
from v2 I changed to
On Mon, Jan 4, 2010 at 6:00 AM, Dave Shield <[email protected]>wrote:
> 2010/1/4 rangeli nepal <[email protected]>:
> > I am trying to compile net-snmp 5.5 with lm_sensor 3.1.1
>
> Note: v3
>
>
> > But at the end I get following:
>
> > libtool: compile: gcc .... hardware/sensors/lmsensors_v2.c ....
>
> Note: v2
>
>
> > am I missing something.
>
> v3 of the lm_sensor package is significantly different to v2,
> and needs different code. There *is* a code file
> hardware/sensors/lmsensors_v3.c, though I don't believe
> it's had much exposure, and it certainly isn't picked up
> automatically.
>
> Try tweaking the file
> hardware/sensors.h
> to pull in the v3 version instead, and re-run "configure".
>
> Dave
>
------------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users