summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_netdns.pl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/check_netdns.pl')
-rwxr-xr-xplugins-scripts/check_netdns.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins-scripts/check_netdns.pl b/plugins-scripts/check_netdns.pl
index ecdbdb1a..82939bff 100755
--- a/plugins-scripts/check_netdns.pl
+++ b/plugins-scripts/check_netdns.pl
@@ -1,4 +1,4 @@
1#!/usr/bin/perl -w 1#!@PERL@ -w
2 2
3# Perl version of check_dns plugin which calls DNS directly instead of 3# Perl version of check_dns plugin which calls DNS directly instead of
4# relying on nslookup (which has bugs) 4# relying on nslookup (which has bugs)
@@ -27,11 +27,16 @@
27 27
28use Getopt::Long; 28use Getopt::Long;
29use Net::DNS; 29use Net::DNS;
30use lib utils.pm; 30use FindBin;
31use lib "$FindBin::Bin";
31use utils ; 32use utils ;
32 33
33my $PROGNAME = "check_netdns"; 34my $PROGNAME = "check_netdns";
34 35
36$ENV{'PATH'}='@TRUSTED_PATH@';
37$ENV{'BASH_ENV'}='';
38$ENV{'ENV'}='';
39
35Getopt::Long::Configure(`bundling`); 40Getopt::Long::Configure(`bundling`);
36GetOptions("V" => $opt_V, "version" => $opt_V, 41GetOptions("V" => $opt_V, "version" => $opt_V,
37 "h" => $opt_h, "help" => $opt_h, 42 "h" => $opt_h, "help" => $opt_h,