[Nagiosplug-devel] [ nagiosplug-Patches-1852201 ] check_dns: added -o option to sort returned addresses

SourceForge.net noreply at sourceforge.net
Sat Jan 5 02:16:42 CET 2008


Patches item #1852201, was opened at 2007-12-17 11:02
Message generated for change (Comment added) made by psychotrahe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1852201&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Thiago Figueiro (thiagocsf)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_dns: added -o option to sort returned addresses

Initial Comment:
On round-robin setups, DNS queries will return addresses on a different order on each request.  This renders the -a option useless. The attached patch will add option -o to sort the returned addresses, making -a option useful again.

For more info, please see 

http://microrants.blogspot.com/2007/11/checking-your-round-robin-dns-with.html

Patch against Plugin Version (-V output): 1.4.10
Plugin Name: check_dns 
Example Plugin Commandline: check_dns -H google.com.au -o -a 72.14.203.104,72.14.207.104,72.14.235.104
Tested on operating system: Debian Etch, Solaris 10
Tested on architecture: i686, sparc
Tested with compiler: gcc 4.2.3, Sun's crazy-ass compiler (can't remember the version)

----------------------------------------------------------------------

>Comment By: Matthias Eble (psychotrahe)
Date: 2008-01-05 02:16

Message:
Logged In: YES 
user_id=1694341
Originator: NO

Hi Thiago,

thanks for your patch, I've just applied another patch from the tracker to
svn that does nearly the same thing. With the other one -o isn't needed at
all since addresses can be sorted any time.

Matthias


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1852201&group_id=29880




More information about the Devel mailing list