snmptrapd does not forward a specific OID trap to the second destination
Issue
Is it possible to configure snmptrapd so that it can forward traps to multiple hosts?
snmptrapd does not forward a specific OID trap to the second destination. I would like to configure snmptrapd like below;
- snmptrapd forwards traps to the host "10.0.0.10" if trap OID is .1.3.6.1.6.3.1.1.5.1 .
- snmptrapd forwards all traps (including the trap whose OID is .1.3.6.1.6.3.1.1.5.1 ) to the host "10.0.0.20".
Here is my configuration. I expect that snmptrapd forwards the trap OID ".1.3.6.1.6.3.1.1.5.1" to both of the hosts (10.0.0.10 and 10.0.0.20).
However, only the host "10.0.0.10" can receive the trap. Though, the host "10.0.0.20" can receive other traps, it cannot receive the OID ".1.3.6.1.6.3.1.1.5.1" trap.
authCommunity log,execute,net public
disableAuthorization yes
forward .1.3.6.1.6.3.1.1.5.1 10.0.0.10
forward .1 10.0.0.20
Environment
- Red Hat Enterprise Linux
- net-snmp
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.