snmptrapd TCP vs UDP for hostname
Aly Khimji <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAJMZt_bKBmCghwVfHXo=Xd-5TuQTOW7rm43zbC8TXtL3ZiGr0w@mail.gmail.com> |
Hey All, Wondering if you can shed some light on an odd issue I am having. When sending UDP traps I am able to receive and translate the host name of the sender which I can translate and process in our Nagios setup without any issues. However when using a tcp sent trap, which is exactly the same in terms of payload, the host name either isn't received? or is not passed to snmptrapd? I am not sure. This is posing a problem for processing the trap as the host name is missing. I am aware we can do some extra processing to resolve the IP to a host name in a post processing fashion and pass it over to the trap processor, but if the host name was received this would save extra steps. Can anyone shed some light on the below? If you need more details please let me know. client: snmpinform -v 2c -c public nagios-mgmt '' enterprises.9999.6 server: trap: drpmbuilderu01 UDP: [10.131.223.50]:46212->[10.137.217.19] .1.3.6.1.2.1.1.3.0 = 11:21:22:50.09,.... client: snmpinform -v 2c -c public tcp:nagios-mgmt '' enterprises.9999.6 server: trap: TCP: [10.131.223.50]:40748 TCP: [10.131.223.50]:40748 .1.3.6.1.2.1.1.3.0 = 11:21:22:53.51, ..... installed pkgs net-snmp-libs-5.5-49.el6_5.1.x86_64 net-snmp-perl-5.5-49.el6_5.1.x86_64 net-snmp-utils-5.5-49.el6_5.1.x86_64 net-snmp-devel-5.5-49.el6_5.1.x86_64 net-snmp-5.5-49.el6_5.1.x86_64 cat /etc/snmp/snmptrapd.conf authCommunity log,execute,net public traphandle default /usr/bin/trapproc.sh cat /etc/sysconfig/snmptrapd OPTIONS="-t -c /etc/snmp/snmptrapd.conf -On -Lsd -p /var/run/snmptrapd.pid -m ALL udp:162 tcp:162" Thanks, Aly ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users