Alex Burger wrote:

How about adding the command line options for snmptrapd into the snmptrapd.conf file? It looks like snmpd already has some of the command line options in the snmpd.conf file. For example:

dumpPackets        0
printEvenNumbers    0
doNotFork        0
format            %M-%L-%y %W
syslogFacility        d
loggingOutput        f /var/log/snmptrapd.log
pidFile            /var/run/snmptrapd.pid
doNotLogTraps        0


I'll try to come up with a patch to implement the above over the next week.

I have submitted a patch (981319)that adds some new tokens to snmptrapd.conf. The new tokens are:


doNotLogTraps
pidFile
logOption
doNotFork
printEventNumbers
ignoreAuthFailure
outputOption

The logOption uses the same format as the -O command line switch. For example:

logOption f/var/log/snmptrapd.log

Alex



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to