snmp trap logfile

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

snmp trap logfile

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: snmp trap logfile

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: snmp trap logfile

Post by veenm »

Seems to be some weird problem , now its working fine , thank you for your support
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: snmp trap logfile

Post by abrist »

Alright, locking the thread up!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked