Professional Documents
Culture Documents
SNMP Traps Forward From One System To Another
SNMP Traps Forward From One System To Another
SNMP Traps Forward From One System To Another
This document describes how the system receiving the traps can be configured to forward the traps on to
a third system.
HostA: 10.30.35.52 (Initial System where we send test traps)
HostB: 10.30.35.173 (SNMP trap forwarder)
HostC: 10.30.35.113 (SNMP Destination)
net-snmp.x86_64,
net-snmp-agent-libs.x86_64
net-snmp-libs.x86_64
snmpcheck.noarch
2. On the initial system (HostA) that is generating the traps, configure the /etc/snmp/snmpd.conf file
to send traps to HostB IP address: 10.30.35.173
5. Now generate a trap on HostA, see if HostC receives it. If not, newer versions
of snmpd and snmptrapd will do some level of authentication on the system receiving the
forward. If that is the case, do the following on the system receiving the forward, which
is HostC in this example. Create the /etc/snmp/snmptrapd.conf file, and add the following line:
disableAuthorization yes
Logs:
Generate SNMP V1 trap with below command in HostA
[root@js1ger snmp]# date; snmptrap -v 1 -c public 10.30.35.173 .1.3.6.1.6.3 "" 0 0 coldStart.0
Thu Feb 25 09:36:02 CET 2021
HostB Logs
root@ksserver:/var/log>% tail -f messages
Feb 25 09:36:03 ksserver snmptrapd[92874]: 2021-02-25 09:36:03 js1ger.mach.com [10.30.35.52]
(via UDP: [10.30.35.52]:49159->[10.30.35.173]:162) TRAP, SNMP v1, community
public#012#011.1.3.6.1.6.3 Cold Start Trap (0) Uptime: 0:00:00.00
Feb 25 09:37:19 ksserver ntpd[12805]: 0.0.0.0 c613 03 spike_detect -0.289592 s
^C
root@ksserver:/var/log>%
HostC logs:
^C
[root@syslog01dedc02p ~]#