SNMP Trap Log?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SNMP Trap Log?

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
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: SNMP Trap Log?

Seibold, Michael-2

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:[hidden email]]
Gesendet: Dienstag, 13. Juni 2017 18:25
An: General OpenNMS Discussion <[hidden email]>
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
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: SNMP Trap Log?

Dino Yancey
In reply to this post by David Poole
/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
<[hidden email]> wrote:

> 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
> _______________________________________________
> 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

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: SNMP Trap Log?

David Poole
In reply to this post by Seibold, Michael-2
Michael,

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

-David

On Tue, Jun 13, 2017 at 9:42 AM Seibold, Michael <[hidden email]> wrote:

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:[hidden email]]
Gesendet: Dienstag, 13. Juni 2017 18:25
An: General OpenNMS Discussion <[hidden email]>
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_______________________________________________
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

------------------------------------------------------------------------------
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