Re: win32 snmptrapd installation and name resolving
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGaO-02EcJ2Wb8NuyzXXZGxEMUQRFOjZr1jNGA32q69aDQ@mail.gmail.com> |
On 19 August 2011 08:43, Roland Klein Overmeer [GISS] <[email protected]> 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 > Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354 This patch is sufficiently simple, that it's probably easier to just apply it by hand. Use your preferred text editor (or Visual Studio) to edit the two files win32/net-snmp/net-snmp-config.h and win32/net-snmp/net-snmp-config.h.in In both cases, look for the line #define HAVE_GETHOSTBYNAME 1 and immediately after this, add the two lines /* define if you have gethostbyaddr */ #define HAVE_GETHOSTBYADDR 1 (You can also edit the file snmplib/system.c and change "gethostbyname" to "gethostbyaddr" in the log message on line 975 if you like, but this won't actually affect the behaviour at all. It simply corrects a misleading error message!) Dave ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ 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