Getting started with SNMPv3 traps, snmptrapd

Allowed community names are defined in '/etc/snmp/snmptrapd.conf' file:
Perl script is located '/usr/bin/zabbix_trap_receiver.pl' and the content is:
Restart service:
systemctl restart snmptrapd
Test linkDown via SNMPv2:
snmptrap -v 1 -c Jupiter 127.0.0.1 'IF-MIB::linkDown' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.3 s "eth0"
Test linkUp via SNMPv2:
snmptrap -v 1 -c Earth 127.0.0.1 'IF-MIB::linkUp' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.4 s "eth0"
Check log file:
cat /tmp/zabbix_traps.tmp
Send SNMPv3 trap:
snmptrap -n "" -e 0x8000000001020304 -v3 -a SHA -A mypassword -x AES -X mypassword -l authPriv -u traptest 127.0.0.1 0 linkUp.0
Check log file:
cat /tmp/zabbix_traps.tmp
Make sure 'StartSNMPTrapper=1' in 'zabbix_server.conf':
grep ^Start /etc/zabbix/zabbix_server.conf

No comments: