From: SourceForge.net <no...@so...> - 2006-04-21 22:52:10
|
Bugs item #1474468, was opened at 2006-04-21 22:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1474468&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: agent Group: None Status: Open Resolution: None Priority: 5 Submitted By: CAP (capkvs) Assigned to: Nobody/Anonymous (nobody) Summary: ifConnectorPresent always returns 0 Initial Comment: Net-SNMP v5.3.0.1 running on Linux 2.4.x or 2.6.x. snmpd always returns the value 0 for the ifConnectorPresent column. Examination of source code reveals three problems: 1) Value returned is not a TruthValue (obviously), i.e., not true(1) or false(2); 2) Value returned is not tied to the "real" data, which seems to be the connector_present field of the corresponding netsnmp_interface_entry struct; 3) The "real" data (connector_present) is not actually initialized with measured data (e.g., data returned from ioctl call). The attached patch should fully fix problems 1 and 2, but only partially fixes problem 3. This partial fix for problem 3 consists of returning ifConnectorPresent.N = false(2) if and only if interface N is a loopback device. It works on Linux 2.4.x and 2.6.x, but maybe not on most other OSes, which is good enough for our purposes. Note: Could not find a fix in the CVS repository, but this may be due to SourceForge.net update/hardware problems? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1474468&group_id=12694 |