启用snmptrap [root@localhost net-snmp]# rpm -ivh * 正在升级/安装... 1:net-snmp-libs-1:5.8-22.el8 ################################# [ 20%] 2:net-snmp-agent-libs-1:5.8-22.el8 ################################# [ 40%] 3:net-snmp-1:5.8-22.el8 ################################# [ 60%] 4:net-snmp-perl-1:5.8-22.el8 ################################# [ 80%] 5:net-snmp-utils-1:5.8-22.el8 ################################# [100%] [root@localhost net-snmp]# vim /etc/sysconfig/snmptrapd [root@localhost net-snmp]# vim /etc/snmp/snmptrapd.conf [root@localhost net-snmp]# vim /usr/bin/zabbix_trap_receiver.pl [root@localhost net-snmp]# vim /etc/zabbix/zabbix_proxy.conf [root@localhost net-snmp]# systemctl restart zabbix-proxy [root@localhost net-snmp]# systemctl restart snmptrapd.service [root@localhost net-snmp]# systemctl enable snmptrapd.service [root@localhost net-snmp]# snmptrap -v 1 -c public 10.255.209.219 '.1.3.6.1.6.3.1.1.5.3' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.3 s "teststring001" [root@localhost net-snmp]# cd /tmp
标签:22,5.8,zabbix6.0,snmp,centos8.6,snmptrap,net,root,localhost From: https://www.cnblogs.com/spdb/p/16990924.html