> I run snmp trap demon and I get answer like this > ]# snmptrapd -f -C -c /tmp/snmptrapd.conf -Le
You are explicitly telling the trap receiver to use the configuration file '/tmp/snmptrapd.conf' (That's the meaning of the -c option) Have you created this file? > /tmp/snmptrapd.conf: No such file or directory Probably not :-) > - but about I think I have problem in snmptrapd.conf because when I run > snmptrap I don't have any error Again - are you talking about snmptrap, or snmptrapd? What exactly do you mean by "run snmptrap" If you run the command "snmptrap" with no options, then you *will* get an error, because that's not valid. What is the *exact* command(s) that you are running? > I set my snmptrapd.conf like this : > logOption f /var/log/snmptraps.log > authCommunity log,execute,net public And where is this file located? > and in this path : /etc/sysconfig/snmpd.options I set like this : > > OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x (MY IP)" That file, and those options are relating to the SNMP agent ('snmpd'). They are nothing to do with either the trap receiver ('snmptrapd') or the trap sender ('snmptrap'). Please don't confuse the various elements - they are different commands used for different purposes, and controlled by different files. > and also I turnd my IPtable off for test but I dont have anything in my log > file after I run snmptrap . > > I TEST my request in debian and I get true answer but in CentOS I didn't get > any answer Please report *exactly* what you are doing. There's simply not enough detail in what you have said so far. Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users