Re: snmptrapd.conf format1 and format2 tokens not being used?!

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 23 March 2010 15:06, Schaatsbergen, Chris
<[email protected]> wrote:
> We am running Debian server, net-snmp version 5.4.1.
> The snmptrapd.conf file currently:
>
> format1 '%y-%m-%l ?%h:%j:%k ?%b ?%P ?%N ?%W ?%v\n'
> format2 '%y-%m-%l ?%h:%j:%k ?%b ?%P ?%N ?%W ?%v\n'


The problem doesn't lie with the format commands themselves,
but with the following directive:

> logOption f /var/run/snmp-traps


If you specify the logging on the command line  (-Lf/var/run/snmp-traps),
you should find that the format settings are applied correctly.

There's something about specifying "logOption" in the config file that
works in a different manner.   I'll investigate further, and get back to you.

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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.