[nagios-plugins] Add support for drill tool to check_dig (#1218)

Alexander Wittig notifications at github.com
Mon Dec 16 13:44:36 CET 2013


FreeBSD starting with version 10 is shipped with ldns instead of bind as resolver. Consequently the dig tool in base is replaced by drill. While dig can still be installed as a third party application, it would be nice to make do with the tools available in the system already.
This patch rearranges the command line used to invoke dig slightly so that it can be used with both dig and drill (tested with dig 9.8.3-P1 and 9.9.4 as well as drill 1.6.16). It would be really neat if the configure script could be changed to automatically pick up drill when dig is not available (or the other way around), but my autotools-foo is not good enough for that.
This part of the patch is an extended version of the locally maintained patch currently deployed in the FreeBSD ports tree by Dmitry Sivachenko.

Unrelated, to this, the default DNS server, if not specified, now takes into account the -4 and -6 switches (i.e. if -6 is given ::1 is used instead of 127.0.0.1).
You can merge this Pull Request by running:

  git pull https://github.com/abgandar/nagios-plugins master

Or you can view, comment on it, or merge it online at:

  https://github.com/nagios-plugins/nagios-plugins/pull/1218

-- Commit Summary --

  * Update check_dig.c
  * Update check_dig.c

-- File Changes --

    M plugins/check_dig.c (9)

-- Patch Links --

https://github.com/nagios-plugins/nagios-plugins/pull/1218.patch
https://github.com/nagios-plugins/nagios-plugins/pull/1218.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20131216/a89b4c18/attachment.html>


More information about the Devel mailing list