Page 1 of 1

snmp trap logfile

Posted: Mon Apr 06, 2015 2:48 pm
by veenm
hi ,

I have setup the nagios server to receive the trap , however i dont see the snmpttunknown.log file and trap logged in snmptt.log shows older date even though file snmptt.log gets updated regularly.

1. -rwxrwxrwx 1 snmptt root 834245 Apr 6 15:42 snmptt.log
2 tail -10 snmptt.log
Sat Mar 21 01:52:29 2015 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Please help me in resolving this issue.

Re: snmp trap logfile

Posted: Mon Apr 06, 2015 6:24 pm
by Box293
Is the snmptrapd service running?

Code: Select all

service snmptrapd status
Is the snmptt service running?

Code: Select all

service snmptt status
Are you seeing any messages logged?

Code: Select all

grep snmptrapd /var/log/messages
grep snmptt /var/log/messages
Are you seeing the snmp traps hitting the server?

In this example, the following applies:

Remote computer sending SNMP Traps
10.25.5.20
Nagios server receiving SNMP Traps
10.25.5.30

Code: Select all

tcpdump src host 10.25.5.20 and udp dst port 162 and dst host 10.25.5.30
Please post your snmptt.ini and snmptrapd.conf files.

Re: snmp trap logfile

Posted: Tue Apr 07, 2015 12:49 pm
by veenm
Seems to be some weird problem , now its working fine , thank you for your support

Re: snmp trap logfile

Posted: Tue Apr 07, 2015 1:37 pm
by abrist
Alright, locking the thread up!