A Sex, 2004-06-04 ās 02:28, Robert Story escreveu:
> On Thu, 03 Jun 2004 19:04:56 +0100 Paulo wrote:
> PS> I'm trying to use the net-snmp service to monitor the CPU temperature on
> PS> a Linux machine. So far I can "see" the temperature using the sensors
> PS> program (from the lm_sensors package) so I suppose that the sensors are
> PS> correctly installed. I'm using the net-snmp package from Fedora Core 2
> PS> and after searching the MIBS I've found this oid: .1.3.6.1.2.1.25.8
> PS> (hrSensor from the HOST-RESOURCES-MIB.txt mib).
> 
> As Wes said, we don't support that table. We do, however, have our own table.
> You will probably need to rebuild net-snmp from scratch (I doubt red-hat built
> net-snmp with lm_sensosrs support), and during configure, make sure to specify:
> 
>       --with-mib-modules=ucd-snmp/lmSensors --with-ldflags=-lsensors

Thanks that worked just like I wanted.

> You will probably have to install the LM-SENSORS-MIB.txt file by hand (it is in
> the net-snmp/mibs/ directory; copy it to /usr/local/share/snmp/mibs/).
> 
> Oh, and make sure to remove the rpm version before you install the version you
> build from source.

I altered the rpm spec file to include those compilation options and
after building the RPM I noticed that it also includes the
LM-SENSORS-MID.txt. Just for the record, the temperature values are
available under the lmMiscSensorsValue.3 OID.

-- 
Paulo Silva <[EMAIL PROTECTED]>
Eurotux

Attachment: signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente

Reply via email to