Hello everyone,
I am trying to configure Zabbix traps using snmptt. I tried following multiple posts on this forum and the official guide but no luck so far.
I currently can see traps being written in /tmp/zabbix_traps.tmp but I don't seem to be able to see them in the latest data tab.
I am generating a test trap:
snmptrap -v 1 -c public 127.0.0.1 '.1.3.6.1.6.3.1.1.5.4' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.4 s "eth0"
and getting the following in /tmp/zabbix_traps.tmp :
IF-MIB::linkUp.0.33 Normal "General event" localhost - ZBXTRAP 127.0.0.1 general linkUp:eth0
and the following in zabbix-server.log:
unmatched trap received from "127.0.0.1": 12:04:31 2016/06/21 IF-MIB::linkUp.0.33 Normal "General event" localhost - general linkUp:eth0
My snmptt.conf file contains the following:
EVENT general .* "General event" Normal
FORMAT ZBXTRAP $ar $N $+*
I created a new host with ip: 127.0.0.1 and a corresponding item:
Name: snmptraps
type: Zabbix trapper
key: snmptrap["General"]
Type of information: I tried both log and character
Am I missing anything?
Thank you very much
I am trying to configure Zabbix traps using snmptt. I tried following multiple posts on this forum and the official guide but no luck so far.
I currently can see traps being written in /tmp/zabbix_traps.tmp but I don't seem to be able to see them in the latest data tab.
I am generating a test trap:
snmptrap -v 1 -c public 127.0.0.1 '.1.3.6.1.6.3.1.1.5.4' '0.0.0.0' 6 33 '55' .1.3.6.1.6.3.1.1.5.4 s "eth0"
and getting the following in /tmp/zabbix_traps.tmp :
IF-MIB::linkUp.0.33 Normal "General event" localhost - ZBXTRAP 127.0.0.1 general linkUp:eth0
and the following in zabbix-server.log:
unmatched trap received from "127.0.0.1": 12:04:31 2016/06/21 IF-MIB::linkUp.0.33 Normal "General event" localhost - general linkUp:eth0
My snmptt.conf file contains the following:
EVENT general .* "General event" Normal
FORMAT ZBXTRAP $ar $N $+*
I created a new host with ip: 127.0.0.1 and a corresponding item:
Name: snmptraps
type: Zabbix trapper
key: snmptrap["General"]
Type of information: I tried both log and character
Am I missing anything?
Thank you very much
Comment