diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-07-06 19:55:03 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-07-06 19:55:03 +0200 |
commit | 1f4fd12845a2041df3f34f7a84d8012e747e327c (patch) | |
tree | 1524e7a4def106f54d86b36ea3a114638b1141d6 /plugins-scripts/check_netdns.pl | |
parent | ba21e26443385dd283d08e0419ff6ff25fedd0e8 (diff) | |
download | monitoring-plugins-1f4fd12845a2041df3f34f7a84d8012e747e327c.tar.gz |
Don't rely on FindBin module to locate utils.pm
As the FindBin module doesn't work with ePN, set the path to utils.pm
explicitly at build time. Keep using FindBin additionally, so that the
plugins can also be executed from the build directory.
Closes #1271.
Diffstat (limited to 'plugins-scripts/check_netdns.pl')
-rwxr-xr-x | plugins-scripts/check_netdns.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins-scripts/check_netdns.pl b/plugins-scripts/check_netdns.pl index 82939bff..59c81a90 100755 --- a/plugins-scripts/check_netdns.pl +++ b/plugins-scripts/check_netdns.pl | |||
@@ -29,6 +29,7 @@ use Getopt::Long; | |||
29 | use Net::DNS; | 29 | use Net::DNS; |
30 | use FindBin; | 30 | use FindBin; |
31 | use lib "$FindBin::Bin"; | 31 | use lib "$FindBin::Bin"; |
32 | use lib '@libexecdir@'; | ||
32 | use utils ; | 33 | use utils ; |
33 | 34 | ||
34 | my $PROGNAME = "check_netdns"; | 35 | my $PROGNAME = "check_netdns"; |