Hi Andy.[...]
I think it would be a good idea to leave the event log enabled, but we need to document how to re-register the service with the other (new for 5.2) command line logging options. README.win32 is missing the snmptrapd register info.
I think we could re-write some of that section to make it clearer to people using the binary release.
I just did some quick tests with the service under 2000 (MSVC 6), and I get the following in the event log. Only the first one looks correct.
The others are correct as well. The trap is logged but I think the message file with the Windows message IDs is incomplete. Windows does not know what the message means, so it tells you that and just logs the message verbatim. That might make it a bit tricky to parse the logs with another application. IMO text file logging is a better option, but others may disagree. I have looked into cleaning up the message file in the past, but if anyone else has some insight into the Windows event log it would be appreciated.
Andy
ID 100: Net-SNMP Trap Handler - Successfully registered as Service.
ID 0:
The description for Event ID ( 0 ) in Source ( snmptrapd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: Starting snmptrapd 5.2.pre1
I sent a trap, and it was logged as:
ID 0:
The description for Event ID ( 0 ) in Source ( snmptrapd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: bink [192.168.4.1]: Trap , DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (12345) 0:02:03.45, SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.534.1.11.4.1.0.22, SNMPv2-SMI::enterprises.534.1.7.2.1.1.52 = INTEGER: 52, SNMPv2-SMI::enterprises.534.1.7.2.1.2.52 = OID: SNMPv2-SMI::enterprises.534.1.7.15, SNMPv2-SMI::enterprises.534.1.11.3.0 = STRING: "Alex"
.
Alex
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
