Hello,
I want to monitor a device with SNMP Trepas through a proxy. Proxy is already monitored and collected data are sent to Zabbix Server without any problem. I have followed Zabbix blog : https://blog.zabbix.com/snmp-traps-in-zabbix/8210/
StartSNMPTrapper=1
SNMPTrapperFile=/tmp/zabbix_traps.tmp
SNMP Trap can be tested with this command:
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"
Perl script is working and output is formatted to /tmp/zabbix_traps.tmp
2024-03-06T17:25:56+0400 ZBXTRAP 127.0.0.1
PDU INFO:
notificationtype TRAP
version 0
receivedfrom UDP: [127.0.0.1]:60786->[127.0.0.1]:162
errorstatus 0
messageid 0
community public
transactionid 8
errorindex 0
requestid 0
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (55) 0:00:00.55
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0.33
IF-MIB::linkUp type=4 value=STRING: "eth0"
SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4 value=STRING: "public"
SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: IF-MIB::linkUp
The Proxy/host in Zabbix with an Agent interface. I have added a SNMP interface 127.0.0.0:161 to the host and created an Item.
Interface is matching with the one in header (ZBXTRAP 127.0.0.1) but NO DATA ARE SENT TO SERVER.
Why? snmptrapd is listening at UDP/162. Is it normal to use UDP/161? I have changed but it still not working.
Please help.
I want to monitor a device with SNMP Trepas through a proxy. Proxy is already monitored and collected data are sent to Zabbix Server without any problem. I have followed Zabbix blog : https://blog.zabbix.com/snmp-traps-in-zabbix/8210/
StartSNMPTrapper=1
SNMPTrapperFile=/tmp/zabbix_traps.tmp
SNMP Trap can be tested with this command:
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"
Perl script is working and output is formatted to /tmp/zabbix_traps.tmp
2024-03-06T17:25:56+0400 ZBXTRAP 127.0.0.1
PDU INFO:
notificationtype TRAP
version 0
receivedfrom UDP: [127.0.0.1]:60786->[127.0.0.1]:162
errorstatus 0
messageid 0
community public
transactionid 8
errorindex 0
requestid 0
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (55) 0:00:00.55
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0.33
IF-MIB::linkUp type=4 value=STRING: "eth0"
SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4 value=STRING: "public"
SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: IF-MIB::linkUp
The Proxy/host in Zabbix with an Agent interface. I have added a SNMP interface 127.0.0.0:161 to the host and created an Item.
Interface is matching with the one in header (ZBXTRAP 127.0.0.1) but NO DATA ARE SENT TO SERVER.
Why? snmptrapd is listening at UDP/162. Is it normal to use UDP/161? I have changed but it still not working.
Please help.
Comment