NetXMS Support Forum

English Support => General Support => Topic started by: johanborch on September 22, 2010, 01:32:27 PM

Title: SNMP Traps
Post by: johanborch on September 22, 2010, 01:32:27 PM
Hi,

I'm new to netxms and I'm trying to get snmp traps to work. I have a device that is sending traps but netxms is not registering anything. EnableSNMPTraps is set to 1 on my control panel.

I don't quite understand how to use netxms, for example graphing, do i really need to right click on every DCI to graph or can I get a page for a host that graps all interfaces?

Is there a way to automatically create DCI's for all interfaces on a host, I found a guide on this forum but I don't quite understand how to add all interfaces to a template.

Regards
Johan
Title: Re: SNMP Traps
Post by: johanborch on September 22, 2010, 01:56:49 PM
I can see the following listening ports:

tcp        0      0 *:mysql                     *:*                         LISTEN
tcp        0      0 *:4700                      *:*                         LISTEN
tcp        0      0 *:4701                      *:*                         LISTEN
tcp        0      0 *:http                      *:*                         LISTEN
tcp        0      0 *:ssh                       *:*                         LISTEN
Title: Re: SNMP Traps
Post by: johanborch on September 22, 2010, 06:54:03 PM
I can also see that traps i arriving to my netxms system.

17:50:11.046342 IP (tos 0x0, ttl  63, id 36880, offset 0, flags [none], proto: UDP (17), length: 169) 1.1.1.1..63077 > 2.2.2.2.snmptrap:  { SNMPv2c C=public { V2Trap(127) R=297506224  system.sysUpTime.0=305468639 [|snmp] } }
17:50:43.049687 IP (tos 0x0, ttl  63, id 36966, offset 0, flags [none], proto: UDP (17), length: 169) 1.1.1.1.63077 > 2.2.2.2.snmptrap:  { SNMPv2c C=public { V2Trap(127) R=297506267  system.sysUpTime.0=305471840 [|snmp] } }
17:50:43.073372 IP (tos 0x0, ttl  63, id 36972, offset 0, flags [none], proto: UDP (17), length: 169) 1.1.1.1.63077 > 2.2.2.2.snmptrap:  { SNMPv2c C=public { V2Trap(127) R=297506268  system.sysUpTime.0=305471842 [|snmp] } }
Title: Re: SNMP Traps
Post by: Victor Kirhenshtein on September 22, 2010, 10:46:57 PM
Did you see NetXMS listening on UDP port 162? If not, please post server's log file. If server is listening on port 162, try to set configuration variable LogAllSNMPTraps to 1, and check SNMP trap log. If you will see traps coming, then you just need to configure server to handle traps correctly. You can use this topic as a reference: https://www.netxms.org/forum/configuration/how-to-configure-snmp-traps-from-my-emc-box/ (https://www.netxms.org/forum/configuration/how-to-configure-snmp-traps-from-my-emc-box/).

Best regards,
Victor
Title: Re: SNMP Traps
Post by: johanborch on September 23, 2010, 09:18:34 AM
Hi,

I forgot to restart the server deamon, I can see traps now.

Do I need to manually add all possible traps? I added (via nxmibc) a lot of Juniper mibs, can't netxms automatically identify them, or where can I see my imported mibs?

Regards
Johan
Title: Re: SNMP Traps
Post by: Victor Kirhenshtein on September 28, 2010, 11:21:27 AM
Yes, you have to configure traps to events matching manually for each trap. Also, if you will go that way and create trap configuration for Juniper traps, it will be nice if you can export trap configuration and publish it here.

Best regards,
Victor