Discussion:
[opennms-discuss] SNMP Trap Log?
David Poole
2017-06-13 16:25:03 UTC
Permalink
I have a couple AdTran NetVanta devices that are SNMP-enabled and have been
configured to point their traps to OpenNMS. I also have all the AdTran
MIBs compiled.

I'm apparently not receiving any traps from these devices (port up/down,
etc.).

Is there a trap log I can check to see if the information is being sent but
not being properly processed?

My Cisco devices are working perfectly with SNMP traps.

Thank you,

David
Seibold, Michael
2017-06-13 16:40:25 UTC
Permalink
Hi David,

to be really sure you can run a tcpdump on the network interface of your opennms server (you are on linux, aren't you?)

something like
tcpdump -i eth1 -n 'host 10.11.12.13 and dst port 162'
with the appropriate ip from your device and interface name of your server.

You can also enable debug logging in opennms:
In config file log4j2.xml change
<KeyValuePair key="trapd" value="WARN" />
to
<KeyValuePair key="trapd" value="DEBUG" />

The change should work within less than 1 minute without restarting opennms.

Than have a look at trapd.log, probably in /var/log/opennms.

Don't forget to change the logging back to WARN, DEBUG might cause high load on your server, depending on the number of traps you get (if there are hundreds of them per second for sure).

-Michael


Von: David Poole [mailto:***@gmail.com]
Gesendet: Dienstag, 13. Juni 2017 18:25
An: General OpenNMS Discussion <opennms-***@lists.sourceforge.net>
Betreff: [opennms-discuss] SNMP Trap Log?

I have a couple AdTran NetVanta devices that are SNMP-enabled and have been configured to point their traps to OpenNMS. I also have all the AdTran MIBs compiled.

I'm apparently not receiving any traps from these devices (port up/down, etc.).

Is there a trap log I can check to see if the information is being sent but not being properly processed?

My Cisco devices are working perfectly with SNMP traps.

Thank you,

David
David Poole
2017-06-13 16:44:41 UTC
Permalink
Michael,

Danke - I'll give the logging options a shot!

-David
Post by Seibold, Michael
Hi David,
to be really sure you can run a tcpdump on the network interface of your
opennms server (you are on linux, aren't you?)
something like
tcpdump -i eth1 -n 'host 10.11.12.13 and dst port 162'
with the appropriate ip from your device and interface name of your server.
In config file log4j2.xml change
<KeyValuePair key="trapd" value="WARN" />
to
<KeyValuePair key="trapd" value="DEBUG" />
The change should work within less than 1 minute without restarting opennms.
Than have a look at trapd.log, probably in /var/log/opennms.
Don't forget to change the logging back to WARN, DEBUG might cause high
load on your server, depending on the number of traps you get (if there are
hundreds of them per second for sure).
-Michael
*Gesendet:* Dienstag, 13. Juni 2017 18:25
*Betreff:* [opennms-discuss] SNMP Trap Log?
I have a couple AdTran NetVanta devices that are SNMP-enabled and have
been configured to point their traps to OpenNMS. I also have all the
AdTran MIBs compiled.
I'm apparently not receiving any traps from these devices (port up/down, etc.).
Is there a trap log I can check to see if the information is being sent
but not being properly processed?
My Cisco devices are working perfectly with SNMP traps.
Thank you,
David
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Dino Yancey
2017-06-13 16:43:58 UTC
Permalink
/var/log/opennms/trapd.log, If you're on Linux

You will likely get better info if trapd is set to log level debug in
/opt/opennms/etc/log4j2.xml. (NB: i've never had to do this, so can't
offer much detail)


On Tue, Jun 13, 2017 at 11:25 AM, David Poole
Post by David Poole
I have a couple AdTran NetVanta devices that are SNMP-enabled and have been
configured to point their traps to OpenNMS. I also have all the AdTran MIBs
compiled.
I'm apparently not receiving any traps from these devices (port up/down,
etc.).
Is there a trap log I can check to see if the information is being sent but
not being properly processed?
My Cisco devices are working perfectly with SNMP traps.
Thank you,
David
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Loading...