[hobbit] Two DNS lookups for a server but one fails
Ward, Martin
Martin.Ward at colt.net
Mon Jan 12 15:58:38 CET 2009
Thanks for that Henrik.
I took a copy of my existing 4.2.2 code, overwrote the bbnet directory with the SVN source and recreated the c-ares subdirectory in the bbnet subdir by untar-ing c-areas.1.6.0.tar.gz and renaming the c-ares.1.6.0/ subdirectory to c-ares/
Having done this the compilation failed as it couldn't find a library for the clock_gettime() function. I found that adding "-lrt" to the "LDAPLIBS" variable in the Makefile in the top level source directory solved the problem, but this may not be the right place to put it. A little more fiddling was required because my SSL libraries are not located in the standard library locations and I hate having to set up LD_LIBRARY_PATH everywhere, so my LDAPLIBS and SSLLIBS ended up looking like:
SSLLIBS = -L/usr/local/ssl/lib -R/usr/local/ssl/lib -lssl -lcrypto
LDAPLIBS = -L/usr/lib -lldap -lrt
After compiling it successfully I copied bbtest-net into the server/bin directory and restarted xymon. Apart from a timeout issue with a local script, which I believe is a config issue on my part, things look like they are working fine now. The double DNS lookups are working OK and I am getting remote port connection tests working so that's good or me.
Thanks Henrik!
|\/|artin
> -----Original Message-----
> From: Henrik "Størner [mailto:henrik at hswn.dk]
> Sent: 12 January 2009 11:50
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Two DNS lookups for a server but one fails
>
>
>
> OK, it seems that the bugfix I added in Xymon 4.2.2 had some
> nasty side-effects.
>
> I have started work on a 4.2.3 maintenance tree in
> Subversion, and there is a new version of the DNS code in it
> currently.
> http://hobbitmon.svn.sourceforge.net/viewvc/hobbitmon/branches/4.2.3/
>
> You can try out this code (download it from the link above),
> but it also involves a change from C-ARES 1.2.1 -> 1.6.0, so
> you will have to re-run the configure script to perhaps pick
> up a new runtime library that the new C-ARES requires (librt).
>
> I ran it for most of Friday afternoon at work with no obvious
> bad effects, so I hope it will work better than the current code.
>
> In
> <1F7B01020EC4D04DA17703634B9E888E09BFE6DF at ULPGCTMVMAI003.EU.CO
> LT> "Ward, Martin" <Martin.Ward at colt.net> writes:
>
> >Also I am unsure why it's even reaching this part of the code when I
> >specif= ied --no-ares on the command line.
>
> Xymon still uses ARES to perform the "dns" tests for specific hosts;
> the standard resolver library does not allow you to specify
> what DNS server to query. So the --no-ares option only has
> effect on the DNS lookups Hobbit performs to determine the IP
> of the hosts it is testing, it does not affect the specific
> testing of a DNS server.
>
>
> Regards,
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
*************************************************************************************
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.
The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing security at colt.net and delete the message and any attachments without retaining any copies.
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.
No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
More information about the Xymon
mailing list