Quote:
Originally Posted by sam1990
Hi,
I'm running Centos 6.8 with NET-SNMP 5.5 and am trying to configure snmptrapd to place incoming traps into a spool directory. My snmptrapd.conf file looks like this:
logOption -Lf /pathmaster/incoming
format1 Trap from %B at %h:%j:%k %l.%m.%y %N %v\n
format2 Trap from %B at %h:%j:%k %l.%m.%y %N %v\n
authCommunity log,execute,net public
#disableAuthorization yes
traphandle default php /pathmaster/traparrive.php
However I never see the traps arrive in the /pathmaster/incoming folder. I've set the directory permissions to 777 for testing (I'm on a closed network anyway) but still no luck.
|
First thing I'd check would be your firewall. You may be blocking incoming traffic on port 162. If you want to do an unsafe test, as root, run "iptable -L" to list any firewall rules. If you see any, run "iptables -F" to remove them. This will NOT be a good thing for a server to go into production with, but for a quick test, it'll at least let you see if that's the culprit.
From there, you can check this page
https://mathias-kettner.de/checkmk_mkeventd_traps.html for some simple things to try/tests. And obvious question....you've configured snmptrapd...did you start the service?