Re: win32 snmptrapd installation and name resolving

2011-09-09 Thread Roland Klein Overmeer [GISS]
Hi Dave, I did a -Dread_config and the first few loggings show: read_config:file: . Reading configuration c:/net-snmp/etc/snmp/snmptrapd.conf (1) read_config:line: . c:/net-snmp/etc/snmp/snmptrapd.conf:1 examining: ignoreauthfailure yes . read_config:line: . c:/net-snmp/etc/snmp/snmptrapd.conf:2

Re: win32 snmptrapd installation and name resolving

2011-08-30 Thread Dave Shield
On 26 August 2011 08:55, Roland Klein Overmeer [GISS] wrote: > I added these entries in the file, restarted the service, send the trap > again, but I see no difference in the logged results... Hmmm... if you've set an explicit logging format in the config file and that is not being used, then

Re: win32 snmptrapd installation and name resolving

2011-08-26 Thread Roland Klein Overmeer [GISS]
I added these entries in the file, restarted the service, send the trap again, but I see no difference in the logged results... Roland On Mon, Aug 22, 2011 at 11:43 PM, Dave Shield wrote: > On 22 August 2011 13:41, Roland Klein Overmeer [GISS] > wrote: > > I just did a comment-out of the handle

Re: win32 snmptrapd installation and name resolving

2011-08-22 Thread Dave Shield
On 22 August 2011 13:41, Roland Klein Overmeer [GISS] wrote: > I just did a comment-out of the handler line, restarted the service and > triggered a trap. The handler is still not doing a lookup. What is the format of the log entries that you are seeing? Try the following entry in your snmptrapd

Re: win32 snmptrapd installation and name resolving

2011-08-22 Thread Roland Klein Overmeer [GISS]
I wanted to have the Python script to send the traps through syslog to my monitoring server, but when implementing the net-snmp trap handler I found out that they are also logged to the event log. This is now my main source of retreiving the traps. The script is almost non functional now and has th

Re: win32 snmptrapd installation and name resolving

2011-08-22 Thread Dave Shield
On 22 August 2011 10:02, Roland Klein Overmeer [GISS] wrote: > config is (snmptrapd.conf): > traphandle default C:\Python27\python.exe C:\net-snmp\etc\snmp\handler.py So the traps are being logged by a python script - yes? What does this script look like? What happens if you comment out this

Re: win32 snmptrapd installation and name resolving

2011-08-22 Thread Roland Klein Overmeer [GISS]
Hello Dave, Reverse lookup is functional (nslookup), config is (snmptrapd.conf): ignoreauthfailure yes disableAuthorization yes authCommunity log,execute,net public traphandle default C:\Python27\python.exe C:\net-snmp\etc\snmp\handler.py Roland. On Fri, Aug 19, 2011 at 5:51 PM, Dave Shield w

Re: win32 snmptrapd installation and name resolving

2011-08-19 Thread Dave Shield
On 19 August 2011 12:42, Roland Klein Overmeer [GISS] wrote: > Thanks guys! Compiling was succesfull. Unfortunately the reason for the > recompile still not seems to be resolved. The SNMPTRAPD does not translate > the incomming traps sender address to a servername, but no errors regarding > that i

Re: win32 snmptrapd installation and name resolving

2011-08-19 Thread Roland Klein Overmeer [GISS]
Thanks guys! Compiling was succesfull. Unfortunately the reason for the recompile still not seems to be resolved. The SNMPTRAPD does not translate the incomming traps sender address to a servername, but no errors regarding that in the event logs. Anyone has a suggestion? Thanks again, Roland On

Re: win32 snmptrapd installation and name resolving

2011-08-19 Thread Dave Shield
On 19 August 2011 08:43, Roland Klein Overmeer [GISS] wrote: > Thank you for that, it seems to do something, but I get this output: > D:\install\net-snmp-5.7.1.pre1\net-snmp-5.7.1.pre1>patch -p1 < > 0001-CHANGES-Windows-snmptrapd-Make-the-IP-address-to-hos.patch > patching file snmplib/system.c >

Re: win32 snmptrapd installation and name resolving

2011-08-19 Thread Bart Van Assche
On Fri, Aug 19, 2011 at 9:43 AM, Roland Klein Overmeer [GISS] < roland.klein.overm...@giss.nl> wrote: > Thank you for that, it seems to do something, but I get this output: > > D:\install\net-snmp-5.7.1.pre1\net-snmp-5.7.1.pre1>patch -p1 < > 0001-CHANGES-Windows-snmptrapd-Make-the-IP-address-to-ho

Re: win32 snmptrapd installation and name resolving

2011-08-19 Thread Roland Klein Overmeer [GISS]
Thank you for that, it seems to do something, but I get this output: D:\install\net-snmp-5.7.1.pre1\net-snmp-5.7.1.pre1>patch -p1 < 0001-CHANGES-Windows-snmptrapd-Make-the-IP-address-to-hos.patch patching file snmplib/system.c Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354 This

Re: win32 snmptrapd installation and name resolving

2011-08-18 Thread Bart Van Assche
On Thu, Aug 18, 2011 at 1:09 PM, Roland Klein Overmeer [GISS] < roland.klein.overm...@giss.nl> wrote: > After installing GetGnuWin32 I can launch the 'patch' statement, but What > should I put after the patch command? Sorry for this but I am a newbie to > compiling C++ on win32 platform.. > That

Re: win32 snmptrapd installation and name resolving

2011-08-18 Thread Roland Klein Overmeer [GISS]
After installing GetGnuWin32 I can launch the 'patch' statement, but What should I put after the patch command? Sorry for this but I am a newbie to compiling C++ on win32 platform.. Thanks again, Roland. On Wed, Aug 17, 2011 at 5:06 PM, Bart Van Assche wrote: > On Wed, Aug 17, 2011 at 1:03 PM,

Re: win32 snmptrapd installation and name resolving

2011-08-17 Thread Bart Van Assche
On Wed, Aug 17, 2011 at 1:03 PM, Roland Klein Overmeer [GISS] < roland.klein.overm...@giss.nl> wrote: > Thanks for the patch file, but I have no idea on how to apply it. Can you > give me a hint? > The 5.7.1-pre1 source code can be found here: http://sourceforge.net/projects/net-snmp/files/net-sn

Re: win32 snmptrapd installation and name resolving

2011-08-17 Thread Roland Klein Overmeer [GISS]
Hello Bart, Thanks for the patch file, but I have no idea on how to apply it. Can you give me a hint? Regards, Roland On Wed, Aug 17, 2011 at 12:57 PM, Bart Van Assche wrote: > On Tue, Aug 16, 2011 at 11:41 AM, Roland Klein Overmeer [GISS] < > roland.klein.overm...@giss.nl> wrote: > >> I just

Re: win32 snmptrapd installation and name resolving

2011-08-17 Thread Bart Van Assche
On Tue, Aug 16, 2011 at 11:41 AM, Roland Klein Overmeer [GISS] < roland.klein.overm...@giss.nl> wrote: > I just installed version 5.7 of net-snmp and activated the snmptrapd as a > service. Traps are received and nicely logged to the event log. Only problem > is that the sending ip isn't resolved

win32 snmptrapd installation and name resolving

2011-08-16 Thread Roland Klein Overmeer [GISS]
Hi all, I just installed version 5.7 of net-snmp and activated the snmptrapd as a service. Traps are received and nicely logged to the event log. Only problem is that the sending ip isn't resolved to a host name. I also get an error in the event log: net-snmp trap handler error 100 gethostbyname