summaryrefslogtreecommitdiff
path: root/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-05-09 17:53:39 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-05-09 17:53:39 +0000
commit88c5e8e9d24540e6494787e144b7ee9a6751b28c (patch)
treeb2afe23e1e3cc560ee9f8ee965611f389fc05bf8 /net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff
parentFix the behavior of sys_lgetxattr() so that it mimics that of Linux where a (diff)
Add monitoring-plugins, a fork of nagios-plugins.
For now, use a snapshot from github until they release 1.6. Sponsored by: Absolight
Diffstat (limited to 'net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff')
-rw-r--r--net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff b/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff
new file mode 100644
index 000000000000..a855c6217f1a
--- /dev/null
+++ b/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff
@@ -0,0 +1,13 @@
+--- ./plugins/check_dig.c.orig 2014-03-04 20:21:36.000000000 +0100
++++ ./plugins/check_dig.c 2014-04-15 11:42:41.000000000 +0200
+@@ -94,8 +94,8 @@
+ timeout_interval_dig = ceil((double) timeout_interval / (double) number_tries);
+
+ /* get the command to run */
+- xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d",
+- PATH_TO_DIG, dns_server, server_port, query_address, record_type, dig_args, query_transport, number_tries, timeout_interval_dig);
++ xasprintf (&command_line, "%s %s @%s -z -p %d %s %s %s",
++ PATH_TO_DIG, dig_args, dns_server, server_port, query_address, record_type, query_transport);
+
+ alarm (timeout_interval);
+ gettimeofday (&tv, NULL);