I've been working on having some SNMP traps set standing alarms in NPM. One idea I like pretty well is having the trap set the interface status to warning. However, I'm running into a bit of a problem.
It seems that in at least some cases, the IP address I'm receiving the trap from isn't associated with the IP address in the database, at least in the part that the trap handler is interested in. Here's the event viewer message I get:
| On alert action Change interface status to Warning the SWTrapService was unable to update the interface status. Error Detail - FAIL: Change operational interface status on interface for source '192.168.XXX.XXX'. (Node ID = 'XXX'). Interface Index trap variable binding (ifIndex [1.3.6.1.2.1.2.2.1.1]) not found. Could not determine Interface Index. Error detail: Change operational interface status on interface for source '192.168.XXX.XXX'. (Node ID = 'XXX'). Interface Index trap variable binding (ifIndex [1.3.6.1.2.1.2.2.1.1]) not found. | --> | at SolarWinds.Orion.Common.WinSNMP.ChangeInterfaceStatus(Object trapMessage, String target, String title) |
The thing that's confusing me is that when I look at the loopback interface on the device that's sending the trap, I see the IP address:

This is pretty confusing. Any suggestions on where I should look to try and get ahead of this?