调试可:

echo $ZABBIX_SENDER $ZABBIX_SERVER $ZABBIX_PORT $HOST:$KEY "$str" > /tmp/testtrap.txt

测试:

snmptrap -v1 -cpublic localhost .1.3.6.1.6.3.1.1.5.2 0 0 "" "" .1.3.6.1.4.1 s "aaa"

在zabbix服务器端:

1. Added host:

name=snmpTraps

ip address = (didn't enter an ip address)

port = 10005 (port which zabbix server is on) - do i need to set this to 162?

Set status to monitored....didn't add anything else eg IP address, group etc

2. Added item to host (i.e to snmpTraps)

key=snmpTraps

type=zabbix trapper

type of info=numeric

store value=As is

Allowed host= (i have left this line blank)

手动起来完成了zabbix中snmp-traps设置环节,我们就可以配置其他zabbix了!


相关内容