Fwd: SNMPTRAP doesn't work
mohamad hosein jafari <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAB0bvNPj1cDq2rRTCz=4hFe2ifTvUpMTyDAH0dmBdWLZHAA0iw@mail.gmail.com> |
---------- Forwarded message ---------- From: mohamad hosein jafari <[email protected]> Date: Tue, Jul 24, 2012 at 9:13 AM Subject: Re: SNMPTRAP doesn't work To: Mohammad Waqas Athar <[email protected]> Thanks I run snmp trap demon and I get answer like this ]# snmptrapd -f -C -c /tmp/snmptrapd.conf -Le /tmp/snmptrapd.conf: No such file or directory /tmp/snmptrapd.conf: No such file or directory Warning: no access control information configured. This receiver will *NOT* accept any incoming notifications. NET-SNMP version 5.3.2.2 ....... and after that this process take long time and I should stop it - but about I think I have problem in snmptrapd.conf because when I run snmptrap I don't have any error but I don't have anything in my log file I set my snmptrapd.conf like this : logOption f /var/log/snmptraps.log authCommunity log,execute,net public 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)" 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 On Tue, Jul 24, 2012 at 8:55 AM, Mohammad Waqas Athar < [email protected]> wrote: > > Well if you are new to using net-snmp library you will come across such > kind of problems. I think you are having problem setting up > snmptrap daemon . If this is the case then > > 1- First of all make sure your snmptrapd.conf configuration file is in > (any) directory as pointed out by `net-snmp-config --snmpconfpath` > 2- Secondly make sure you flush your iptables rule by sudo iptables -F so > that snmp trap messages are not blocked by firewall. > 3- Try to run snmptrap daemon using sudo /usr/local/sbin/snmptrapd -f -L > o and generate a dummy snmptrap as given in net snmp tutorial and check > does your daemon works or not. > > When you run snmptrap , you will get an error of some config file. Ignore > that message if you follow the correct syntax then message > would definitively be delivered to snmptrap daemon. > > Regards, > Muhammad Waqas. > > > > ------------------------------ > Date: Tue, 24 Jul 2012 04:54:08 +0430 > Subject: SNMPTRAP doesn't work > From: [email protected] > To: [email protected] > > > Hi > > I set snmptrap configure and then I change these conf file but I can't > fine /etc/default/snmptrap.conf > > So when I run a snmptrap instruction on my agent this instruction run but > I don't have anything in my log file > > can you help me? ot can you tell me snmptrap step by step? > > thanks > > ------------------------------------------------------------------------------ > 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 [email protected] Please see the following page > to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > ------------------------------------------------------------------------------ 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users