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
上一篇:snmpwalk命令详解


下一篇:华为交换机开局配置