summaryrefslogtreecommitdiffstats
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index c113d87..7575995 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -1,9 +1,9 @@
1/***************************************************************************** 1/*****************************************************************************
2* 2*
3* Nagios check_dig plugin 3* Monitoring check_dig plugin
4* 4*
5* License: GPL 5* License: GPL
6* Copyright (c) 2002-2008 Nagios Plugins Development Team 6* Copyright (c) 2002-2008 Monitoring Plugins Development Team
7* 7*
8* Description: 8* Description:
9* 9*
@@ -34,7 +34,7 @@
34 34
35const char *progname = "check_dig"; 35const char *progname = "check_dig";
36const char *copyright = "2002-2008"; 36const char *copyright = "2002-2008";
37const char *email = "nagiosplug-devel@lists.sourceforge.net"; 37const char *email = "devel@monitoring-plugins.org";
38 38
39#include "common.h" 39#include "common.h"
40#include "netutils.h" 40#include "netutils.h"
@@ -88,8 +88,8 @@ main (int argc, char **argv)
88 usage_va(_("Could not parse arguments")); 88 usage_va(_("Could not parse arguments"));
89 89
90 /* get the command to run */ 90 /* get the command to run */
91 xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s", 91 xasprintf (&command_line, "%s %s @%s -p %d %s -t %s %s",
92 PATH_TO_DIG, dns_server, server_port, query_address, record_type, dig_args, query_transport); 92 PATH_TO_DIG, query_transport, dns_server, server_port, query_address, record_type, dig_args);
93 93
94 alarm (timeout_interval); 94 alarm (timeout_interval);
95 gettimeofday (&tv, NULL); 95 gettimeofday (&tv, NULL);
@@ -348,7 +348,7 @@ print_help (void)
348 printf (" %s\n","-A, --dig-arguments=STRING"); 348 printf (" %s\n","-A, --dig-arguments=STRING");
349 printf (" %s\n",_("Pass STRING as argument(s) to dig")); 349 printf (" %s\n",_("Pass STRING as argument(s) to dig"));
350 printf (UT_WARN_CRIT); 350 printf (UT_WARN_CRIT);
351 printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT); 351 printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
352 printf (UT_VERBOSE); 352 printf (UT_VERBOSE);
353 353
354 printf ("\n"); 354 printf ("\n");