I think I installed it correctly
and for config I used this link
http://www.cyberciti.biz/faq/linux-unix-bind-snmpd-to-specific-ip-address-interfaces/

and my snmptrapd.conf in in this path : /etc/snmp/snmptrapd.conf

and contain :

logOption f /var/log/snmptraps.log
authCommunity log,execute,net  public

Do you have an other approach?

thanks


On Tue, Jul 24, 2012 at 9:36 AM, Mohammad Waqas Athar <
mohwaqa...@hotmail.com> wrote:

>
> If it is working on debian then you might have installed net snmp package
> differently maybe that is why it is not working on centos.Are you sure your
> snmptrapd.conf is located in tmp directory /tmp/snmptrapd.conf.Try reducing
> you snmptrapd.conf options and first try to make it run then try to
> diagnose where is the problem .
>
> Regards,
> Muhammad Waqas.
>
>
>
> ------------------------------
> Date: Tue, 24 Jul 2012 09:13:44 +0430
> Subject: Re: SNMPTRAP doesn't work
> From: smhjafar...@gmail.com
> To: mohwaqa...@hotmail.com
>
>
> 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 <
> mohwaqa...@hotmail.com> 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: smhjafar...@gmail.com
> To: net-snmp-users@lists.sourceforge.net
>
>
> 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 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
>
>
>
------------------------------------------------------------------------------
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

Reply via email to