Bug 69125 - lm_sensors support for ucd_snmp
Summary: lm_sensors support for ucd_snmp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ucd-snmp
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact: Brock Organ
URL:
Whiteboard:
: 76509 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-18 01:06 UTC by Ben Woodard
Modified: 2015-03-05 01:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-09-24 20:51:39 UTC
Embargoed:


Attachments (Terms of Use)
The original usupported lm_sensors patch (13.04 KB, patch)
2002-07-18 01:07 UTC, Ben Woodard
no flags Details | Diff
The patch that I coded up which dlopens the lm_sensors library (4.19 KB, patch)
2002-07-18 01:09 UTC, Ben Woodard
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2002:159 0 normal SHIPPED_LIVE Updated ucd-snmp packages available 2003-09-24 04:00:00 UTC
Red Hat Product Errata RHEA-2003:210 0 normal SHIPPED_LIVE Updated ucd-snmp packages available 2003-12-19 05:00:00 UTC

Description Ben Woodard 2002-07-18 01:06:41 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606

Description of problem:
The client, LLNL, needs to have lm_sensors support for the ucd_snmp snmpd. A
long time ago RH supplied an unsupported patch which provides this
functionality. They would like to roll this into the main distribution but
lm_sensors is exceedingly dangerous on some systems. Evidently it can burn out a
thinkpad or something like that.

So LLNL had me code up a way that the same binary can be used on a system with
or without lm_sensors. What I did was use dlopen to load the sensors library if
it exists. If not then that part of the mib is never even registered.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.snmpwalk host community host.hrSensors

	

Actual Results:  no sensor readings are listed

Expected Results:  sensor readings are listed

Additional info:

Let me know if I need to make more sophisticated logic for deciding when to use
the lm_sensors functionality.

Comment 1 Ben Woodard 2002-07-18 01:07:58 UTC
Created attachment 65708 [details]
The original usupported lm_sensors patch

Comment 2 Ben Woodard 2002-07-18 01:09:14 UTC
Created attachment 65709 [details]
The patch that I coded up which dlopens the lm_sensors library

Comment 3 Ben Woodard 2002-07-18 01:11:05 UTC
The sensor-dl.patch applies on top of the sensor.patch. The spec file
modifications were extremely minor. I simply added, the patch to the sources
list and to the prep section. The patch applies with -p1.



Comment 4 Ben Woodard 2002-07-18 03:59:12 UTC
James Antill posits that it is weird to have a piece of software change behavior
simply because another package is installed. He suggested adding a configuration
option which would try to enable that functionality. If that functionality is
not available i.e. snmpd cannot load the library or resolve all the symbols then
spit out something to syslog.


Comment 5 Phil Knirsch 2002-08-07 14:55:57 UTC
Errata packages have been done, waiting for QA to pick them up and finalize them.

Read ya, Phil

Comment 6 Phil Knirsch 2003-05-02 10:40:09 UTC
*** Bug 76509 has been marked as a duplicate of this bug. ***

Comment 7 Phil Knirsch 2003-09-24 20:51:39 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2002-159.html



Note You need to log in before you can comment on or make changes to this bug.