I'm noticing that my snmptt.debug log file is getting rather large.
I don't seem to be getting any trap updates.
As an exmaple, I have a PDU that is offline, yet the trap check tells me: OK: Trap reset on Wed Mar 27 11:39:07 CDT 2013
I have 4 other service checks done via SNMP on these devices until I can get traps working correctly.
All 4 of those checks show: SNMP problem - No data received from host
When I check the snmptt.debug log file, I see a whole bunch of the following:
Code: Select all
Processing file: #snmptt-trap-1359929377340843
Invalid trap file. Expected a hostname on line 2 but got nothing
Error processing trap file #snmptt-trap-1359929377340843. Skipping...
Processing file: #snmptt-trap-1359929377831637
Invalid trap file. Expected a serial time on the first line but got nothing
Error processing trap file #snmptt-trap-1359929377831637. Skipping...
Processing file: #snmptt-trap-1359929378192109
Invalid trap file. Expected a hostname on line 2 but got nothing
Error processing trap file #snmptt-trap-1359929378192109. Skipping...
Processing file: #snmptt-trap-1359929378435943
Invalid trap file. Expected a hostname on line 2 but got nothing
Error processing trap file #snmptt-trap-1359929378435943. Skipping...
Processing file: #snmptt-trap-1359929378626032
Invalid trap file. Expected a hostname on line 2 but got nothing
Error processing trap file #snmptt-trap-1359929378626032. Skipping...
Processing file: #snmptt-trap-1359929379252798
Invalid trap file. Expected a hostname on line 2 but got nothing
Error processing trap file #snmptt-trap-1359929379252798. Skipping...
Processing file: #snmptt-trap-1359929379462835
Invalid trap file. Expected a hostname on line 2 but got nothing
Error processing trap file #snmptt-trap-1359929379462835. Skipping...
Processing file: #snmptt-trap-1359929379593267
Invalid trap file. Expected a hostname on line 2 but got nothing
Error processing trap file #snmptt-trap-1359929379593267. Skipping...
Processing file: #snmptt-trap-1360015770046524
Invalid trap file. Expected a serial time on the first line but got nothing
Error processing trap file #snmptt-trap-1360015770046524. Skipping...
Processing file: #snmptt-trap-1360015770261224
Invalid trap file. Expected a serial time on the first line but got nothing
Error processing trap file #snmptt-trap-1360015770261224. Skipping...
Processing file: #snmptt-trap-1360015770802634
Invalid trap file. Expected a serial time on the first line but got nothing
Error processing trap file #snmptt-trap-1360015770802634. Skipping...
Processing file: #snmptt-trap-1360015771163098
Invalid trap file. Expected a serial time on the first line but got nothing
Error processing trap file #snmptt-trap-1360015771163098. Skipping...
Processing file: #snmptt-trap-1360015771418483
Invalid trap file. Expected a serial time on the first line but got nothing
Error processing trap file #snmptt-trap-1360015771418483. Skipping...
Processing file: #snmptt-trap-1360015771674006
Invalid trap file. Expected a serial time on the first line but got nothing
Error processing trap file #snmptt-trap-1360015771674006. Skipping...
Processing file: #snmptt-trap-1360015771936977
Invalid trap file. Expected a serial time on the first line but got nothing
Error processing trap file #snmptt-trap-1360015771936977. Skipping...
Sleeping for 5 seconds
When I check the /var/spool/snmptt directory:
Code: Select all
[root@LNTTAVMNAG1 snmptt]# ls -lh
total 28K
-rw-r--r-- 1 root root 11 Feb 3 16:09 #snmptt-trap-1359929377340843
-rw-r--r-- 1 root root 0 Feb 3 16:09 #snmptt-trap-1359929377831637
-rw-r--r-- 1 root root 11 Feb 3 16:09 #snmptt-trap-1359929378192109
-rw-r--r-- 1 root root 11 Feb 3 16:09 #snmptt-trap-1359929378435943
-rw-r--r-- 1 root root 11 Feb 3 16:09 #snmptt-trap-1359929378626032
-rw-r--r-- 1 root root 11 Feb 3 16:09 #snmptt-trap-1359929379252798
-rw-r--r-- 1 root root 11 Feb 3 16:09 #snmptt-trap-1359929379462835
-rw-r--r-- 1 root root 11 Feb 3 16:09 #snmptt-trap-1359929379593267
-rw-r--r-- 1 root root 0 Feb 4 16:09 #snmptt-trap-1360015770046524
-rw-r--r-- 1 root root 0 Feb 4 16:09 #snmptt-trap-1360015770261224
-rw-r--r-- 1 root root 0 Feb 4 16:09 #snmptt-trap-1360015770802634
-rw-r--r-- 1 root root 0 Feb 4 16:09 #snmptt-trap-1360015771163098
-rw-r--r-- 1 root root 0 Feb 4 16:09 #snmptt-trap-1360015771418483
-rw-r--r-- 1 root root 0 Feb 4 16:09 #snmptt-trap-1360015771674006
-rw-r--r-- 1 root root 0 Feb 4 16:09 #snmptt-trap-1360015771936977
What does this indicate?
In some searching, I've found where one individual ran into this same issue and ended up changing his snmptrapd.conf file to:
Code: Select all
traphandler default /usr/sbin snmptthandler
from:
Code: Select all
traphandler default /usr/sbin snmptt
When I check my snmptrapd.conf file, I see the following:
Code: Select all
disableAuthorization yes
traphandle default /usr/local/sbin/snmptthandler
For reference:
Code: Select all
# ls -lh /usr/local/sbin/snmptthandler
-rwxr-xr-x 1 root root 6.4K Nov 1 16:02 /usr/local/sbin/snmptthandler