SNMPTT don't make log


#1

Hello. I have a problem with snmptt. I have a system CentOS 6.5 and i need receive snmp trap on nagios core 3.5.1. I installed snmp, snmptrap and snmptt services. And then i use next command:

snmptrap -c public -v 2c 127.0.0.1 "" 1.3.3.3.3.3.3.3 1.2.2.2.2.2.2 s "TEST"

This trap is catched by snmptrapd.log, but file snmptt.log even not created.

Config snmptt.ini:

mode=daemon
net_snmp_perl_enable=1
spool_directory=/var/spool/snmptt/
use_trap_time=1
keep_unlogged_traps=1
stdout_enable=1
log_enable=1
log_file=/var/log/snmptt/snmptt.log
log_system_enable=1
log_system_file=/var/log/snmptt/snmpttsystem.log
unknown_trap_log_enable=1
unknown_trap_log_file=/var/log/snmptt/snmpttunknown.log

Config snmptrapd.conf:

traphandler default /usr/sbin/snmptthandler
logoption f /var/log/snmptrap.log
disableAuthorization yes

Direcroty /var/spool/snmptt/ is empty

Help me, please. Why snmptt is not logging?
Do I understand correctly that if I don’t have MIBs, SNMPTT should write trap in snmpttunknown.log?

P.S. Sorry for dirty english =)