snmptrapd can't forward the received traps to a different port on the same host -


i attempting configure snmptrapd trap forwarding.with current configuration, snmptrapd receiving , logging incoming traps, it not appear forwarding them. contents of snmptrapd.conf file follows:

disableauthorization yes traphandle default  /usr/sbin/snmptthandler authcommunity log public forward default 127.0.0.1:1062  

when run snmptrapd follows:

snmptrapd -f -le -d 

i can see traps being received follow result,

received 67 byte packet udp: [191.50.2.21]49801->[191.50.3.75]:162 0000: 30 41 02 01  00 04 08 54  4e 50 49 47  50 29 2a a4    0a.....uspigp)*. 0016: 32 06 08 2b  06 01 06 03  01 01 05 40  04 c0 a8 06    2..+.......@.... 0032: 0c 02 01 04  02 01 00 43  04 3d f3 fc  72 30 14 30    .......c.=..r0.0 0048: 12 06 0a 2b  06 01 04 01  09 02 01 05  00 40 04 b9    ...+.........@.. 0064: 5e 6f 01   

when send test trap localhost,

sending 96 bytes udp: [127.0.0.1]:1062->[0.0.0.0]:0 0000: 30 5e 02 01  00 04 06 70  75 62 6c 69  63 a4 51 06    0^.....public.q. 0016: 09 2b 06 01  06 03 01 01  05 05 40 04  7f 00 00 01    .+........@..... 0032: 02 01 06 02  01 11 43 04  02 12 fa 93  30 32 30 30    ......c.....0200 0048: 06 09 2b 06  01 06 03 01  01 05 05 04  23 4a 75 73    ..+.........#jus 0064: 74 20 61 20  74 65 73 74  2e 2e 2e 62  6c 61 62 6c    t test...blabl 0080: 61 62 6c 61  62 6c 2e 2e  2e 2e 2e 2e  2e 2e 2e 2e    ablabl.......... 

i appreciate assistance further debugging , addressing issue.

thank you.

andrew

if want forward trap need enable net type:

    authcommunity log,net public 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -