其他分享
首页 > 其他分享> > zabbix启用snmptrap

zabbix启用snmptrap

作者:互联网

yum install -y net-snmp net-snmp-perl net-snmp-utils snmptt
编辑 /etc/snmp/snmptrapd.conf

# snmp v2
authCommunity execute public
# snmp v3
createUser -e 0x0102030405 sipo SHA sipo@2021 AES sipo@2021
traphandle default /usr/sbin/snmptt
编辑 /etc/snmp/snmptt.ini
mode = daemon
net_snmp_perl_enable = 1
translate_log_trap_oid = 1
date_time_format = %Y/%m/%d %H:%M:%S
log_enable = 1
log_file = /var/log/snmptt/snmptt.log

snmptt_conf_files = <<END
/etc/snmp/snmptt.conf
/etc/snmp/snmptt.conf.inspur
END

标签:log,conf,启用,sipo,snmp,snmptrap,zabbix,snmptt,net
来源: https://www.cnblogs.com/liujitao79/p/15131563.html