Re: Install a Trap receiver on CentOS 5.7

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGbkMr25ZX2W_Xk6y+enys-vy6sfMAcn3O_TpYihTCOHPA@mail.gmail.com>
2012/1/18 Usuário do Sistema <[email protected]>:
> Thanks Dave, but it isn't work. follow what I done
>
> [root@testesq snmp]# snmptrap -Lf -c public /var/log/snmptraps
>
> I think I have change in an file.....but where !?!?

Two things wrong with this.

Firstly, the next parameter after '-Lf' will be taken as the name
of the log file,   So this command will be trying to log to a file
called "-c".

Secondly, you need to set the logging of the trap *receiver*,
i.e. snmptrapd.    Not the program used to send the trap (snmptrap)

Have a look at where the snmptrapd command is started,
and tweak the options that this specifies, to use "-Lf /var/log/snmptraps"
in place of any existing -L.... flags

Dave

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.