Good afternoon, there was a problem with the reception traps v3. Here is what tcpdump produces:
That is, a trap comes to the port. Further, it is neither logged in nor issues any errors with the snmptrapd -f -Lo command.
Net-snmp v5.7.3
Ubuntu v18.04
Setting snmptrapd.conf:
Setting snmptt.conf:
firewall port does not block.
netstat:
udp 0 0 0.0.0.0:162 0.0.0.0:*
A test trap arrives at the Zabbix server and logs:
snmptrap -v 3 -l authPriv -u username -a SHA -A password@1 -x AES -x password@2 ubuntu_ip 0 1.3.6
The problem has long been, I will be glad of any help.
16:29:29.086320 IP 192.168.186.87.44864 > Ubuntu.snmp-trap: F=ap U="%username%" [!scoped PDU]78_33_4d_af_85_bc_0c_1b_5f_cc_8c_12_3c_d4_46_6a_e4 _59_b1_1e_c2_83_fd_7f_22_90_5c_a0_23_bb_4b_00_ec_a 4_b3_ba_96_89_a1_54_33_91_7a_f9_b2_57_99_b1_fa_88_ 53_e2_4f_9c_d5_5f_5a_5c_ce_af_fc_4d_55_20_9e_0d_29 _0e_a2_7f_22_de_26_d4_a7_74_73_ad_56_ac_11_ca_7e_2 3_1b_6f_91_5c_9e_7d_38_1d_5a_8c_9f_5c_14_47_c8_ce_ d8_7f_1a_65_67_6c_4a_e3_08_55_15_a8_56_11_4e_45_c2 _a8_75_36_e9_6f_1c_0b_be_73_94_65_35_97_43_57_b3_f f_5e_49_02_69_79_a5_21_cb_3d_57_25_a2_79_0d_d5_a2_ b6_ec_4a_fe_e5_3c_ce_32_20_d3_4b_96_6a_c5_9d_bd_f8 _30_71_11_d1_43_7c_1f_09_5a_8c_c8_81_db_70_60_e5_9 1_1f_06_2e_b3_c5_fe_01_d0_19_0f_d1_20_1a_53_40_ae_ 91_74_72_a3_90_43_8b_19_16_55_af_0d_b8_81_25_05_5b _b9_90_78_d2_89_25_f9_91_13_3d_62_4a_9a_03_7c_96_1 6_de_ff_9b_b5_2a_67_c7_6e_9c
Net-snmp v5.7.3
Ubuntu v18.04
Setting snmptrapd.conf:
authUser log,execute,net username
createUser -e 0x80007DA8D9F9AD8DA9 username SHA password@1 AES password@2
traphandle default /usr/sbin/snmptthandler
createUser -e 0x80007DA8D9F9AD8DA9 username SHA password@1 AES password@2
traphandle default /usr/sbin/snmptthandler
#EVENT general .* "General event" Normal
#FORMAT ZBXTRAP $aA $ar $1 $2 $3 $4 $5 $6
#FORMAT ZBXTRAP $aA $ar $1 $2 $3 $4 $5 $6
netstat:
udp 0 0 0.0.0.0:162 0.0.0.0:*
A test trap arrives at the Zabbix server and logs:
snmptrap -v 3 -l authPriv -u username -a SHA -A password@1 -x AES -x password@2 ubuntu_ip 0 1.3.6
The problem has long been, I will be glad of any help.