Re: Regarding logOption in snmptrapd.conf file

Adishesh M <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CA+f1OFrtrL=E-tM6T02tEg5BahMN4qFGAtXp8J03+UaOBEqF4A@mail.gmail.com>
Hi Dave,

Using latest version NET-SNMP Version:  5.7.2 same other error is coming.


snmptrapd is not recognizing logOption
Jan  8 13:35:17 mercury13 snmptrapd[8863]: /etc/snmp/snmptrapd.conf:
line 36: Warning: Unknown token: logOption.

it is still logging traps to /var/log/messages file.

my snmptrapd.conf file content is as given below and i am calling
snmptrapd using command '/usr/local/sbin/snmptrapd -C -c
/etc/snmp/snmptrapd.conf -Ot -On -OQ'
snmpTrapdAddr    UDP:162
pidFile         /var/run/snmptrapd.pid
logOption -f /tmp/all_traps
authCommunity   log     public

Thanks and regards,
Adishesh



On Mon, Jan 7, 2013 at 2:20 PM, Dave Shield <[email protected]> wrote:
>     [ First - *please* don't mail me privately, without copying
>      any responses to the mailing list.  I don't have the time
>      or inclination to offer private, unpaid, SNMP consultancy.
>      Keep discussions to the list, where others can both learn
>      and offer advice.  Thanks.   ]
>
> On 7 January 2013 05:45, Adishesh M <[email protected]> wrote:
>> Hi Dave,
>>
>> I am using below net-snmp version.
>> net-snmp-utils-5.5-41.el6.x86_64
>> net-snmp-libs-5.5-41.el6.x86_64
>> net-snmp-libs-5.5-41.el6.i686
>> net-snmp-5.5-41.el6.x86_64
>> net-snmp-perl-5.5-41.el6.x86_64
>>
>> command line option -Lf /tmp/all_traps is working.
>>
>>
>> is there any way to do it in snmptrapd.conf file.
>
> Probably not - no.
>
> The 5.5 line still processes the logOptions token
> at a relatively late stage - i.e. after the logging has
> already been activated.
>
>
>>                      i dont want to
>> change the /etc/init.d/snmptrapd file which i am using for starting
>> snmptrapd service.
>
> Given your setup and requirements, I'm not sure you have a choice.
>
> Either you upgrade to a new version of the software
>    (which is meant to have fixed the problem, though I'm not entirely convinced)
> or you install a version compiled from source
>    (with a suitable tweak to the code)
> or you configure this behavious via the service startup file
> or you accept that the trap receiver will log via syslog as well as to
> the specified logfile.
>
> Your choice.
>
> Dave

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of 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_122512
_______________________________________________
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.