multiple "Update SNMP" links

Description

multiple "Update SNMP" links appear for a node on the webUI

Environment

Operating System: Linux Platform: PC

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Tarus Balog August 3, 2005 at 6:42 PM

Commited. In 1.2.4. Thanks Bill

Former user June 2, 2005 at 8:32 AM

Hey Tarus,
Can you reproduces this and apply Bill's fix?

Thanks,
Matt

Bill Ayres June 1, 2005 at 4:39 PM

I fixed this problem with the following change to
src/web/src/org/opennms/web/element/NetworkElementFactory.java

Replace the lines:

pstmt = conn.prepareStatement("SELECT issnmpprimary FROM ipinterface WHERE
nodeid=? AND ifindex=?");
pstmt.setInt(1, intfs[i].getNodeId());
pstmt.setInt(2, intfs[i].getIfIndex());

With:

pstmt = conn.prepareStatement("SELECT issnmpprimary FROM ipinterface WHERE
nodeid=? AND ifindex=? AND ipaddr=?");
pstmt.setInt(1, intfs[i].getNodeId());
pstmt.setInt(2, intfs[i].getIfIndex());
pstmt.setString(3, intfs[i].getIpAddress());

Sorry I didn't submit this as a patch, but I've been fairly swamped lately.

--Bill--

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

PagerDuty

Created June 1, 2005 at 4:32 PM
Updated January 27, 2017 at 4:31 PM
Resolved August 3, 2005 at 7:42 PM

Flag notifications