Re: Regarding logOption in snmptrapd.conf file
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGaakbNuDrJ=mcyZfy_01dPfd5rAfZNO9sAaT_5RfCgTEA@mail.gmail.com> |
On 2 January 2013 07:37, Adishesh M <[email protected]> wrote: > I want all the traps received to be logged to into my file only and > not to syslog (/var/log/messages) > > How to avoid logging of traps in syslog. I've done some quick testing, and the best way to achieve this seems to be to specify the option -Lf /tmp/all_traps on the command line. Depending on the version of the code (and you haven't specified this), trying to set this in the trapd config file is either not processed early enough, or needs to be marked with '[snmp]' (and still doesn't seem to work properly) Include the logging options on the command line settings - that should work OK Dave ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ 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