Добрый день. Решил ловить snmp трапы с устройств LAN Контакт. Настроил snmpttrapd.conf
disableAuthorization yes
traphandle default snmptthandler
logoption f /tmp/snmptrapd.log
EVENT general .* "General event" Normal
FORMAT ZBXTRAP $aA $1
#Трап который приходит каждую минуту от прибора с OID .1.3.6.1.4.1.17095.3
2018-07-17 17:35:40 10.254.250.46(via UDP: [10.254.250.46]:65534->[10.254.250.253]) TRAP, SNMP v1, community
RITM-MIB::ritm Enterprise Specific Trap (6) Uptime: 0:00:03.06
RITM-MIB::control.6.0 = INTEGER: 0
#Трап о размыкании контакта с OID .1.3.6.1.4.1.17095.3.1
2018-07-17 17:36:38 10.254.250.46(via UDP:
[10.254.250.46]:65534->[10.254.250.253]) TRAP, SNMP v1, community
RITM-MIB::ritm Enterprise Specific Trap (6) Uptime: 0:00:03.06
RITM-MIB::in0.0 = INTEGER: OFF(1)
#Трап о замыкании контакта с OID .1.3.6.1.4.1.17095.3.1
2018-07-17 17:36:38 10.254.250.46(via UDP: [10.254.250.46]:65534->[10.254.250.253]) TRAP, SNMP v1, community
RITM-MIB::ritm Enterprise Specific Trap (6) Uptime: 0:00:03.06
RITM-MIB::in0.0 = INTEGER: ON(0)
17:35:40 20180717 .1.3.6.1.4.1.17095.0.6 Normal "General event" 10.254.250.46 - ZBXTRAP 10.254.250.46 0
17:36:37 20180717 .1.3.6.1.4.1.17095.0.6 Normal "General event" 10.254.250.46 - ZBXTRAP 10.254.250.46 OFF
17:36:38 20180717 .1.3.6.1.4.1.17095.0.6 Normal "General event" 10.254.250.46 - ZBXTRAP 10.254.250.46 ON
snmptrap -v 1 -c public 127.0.0.1 '.1.3.6.1.4.1.17095.3.1' '10.254.250.46' 6 6 '55' .1.3.6.1.4.1.17095.3.1 i "1"
11:58:49 20180718 .1.3.6.1.4.1.17095.3.1.0.6 Normal "General event" 10.254.250.46 - ZBXTRAP 10.254.250.46 OFF