diff options
Diffstat (limited to 'plugins-scripts/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins-scripts/Makefile.am b/plugins-scripts/Makefile.am index 78a950c..794a34f 100644 --- a/plugins-scripts/Makefile.am +++ b/plugins-scripts/Makefile.am | |||
@@ -26,7 +26,8 @@ EXTRA_DIST=check_breeze.pl check_disk_smb.pl check_flexlm.pl check_ircd.pl \ | |||
26 | EDIT = sed \ | 26 | EDIT = sed \ |
27 | -e 's|[@]NP_VERSION[@]|$(NP_VERSION)|g' \ | 27 | -e 's|[@]NP_VERSION[@]|$(NP_VERSION)|g' \ |
28 | -e 's|[@]TRUSTED_PATH[@]|$(with_trusted_path)|g' \ | 28 | -e 's|[@]TRUSTED_PATH[@]|$(with_trusted_path)|g' \ |
29 | -e 's|[@]PERL[@]|$(PERL)|g' | 29 | -e 's|[@]PERL[@]|$(PERL)|g' \ |
30 | -e 's|[@]libexecdir[@]|$(libexecdir)|g' | ||
30 | 31 | ||
31 | TESTS_ENVIRONMENT=perl -I $(top_builddir) -I $(top_srcdir) | 32 | TESTS_ENVIRONMENT=perl -I $(top_builddir) -I $(top_srcdir) |
32 | 33 | ||
diff --git a/plugins-scripts/check_breeze.pl b/plugins-scripts/check_breeze.pl index 12a60ee..1a3aceb 100755 --- a/plugins-scripts/check_breeze.pl +++ b/plugins-scripts/check_breeze.pl | |||
@@ -6,6 +6,7 @@ use Getopt::Long; | |||
6 | use vars qw($opt_V $opt_h $opt_w $opt_c $opt_H $opt_C $PROGNAME); | 6 | use vars qw($opt_V $opt_h $opt_w $opt_c $opt_H $opt_C $PROGNAME); |
7 | use FindBin; | 7 | use FindBin; |
8 | use lib "$FindBin::Bin"; | 8 | use lib "$FindBin::Bin"; |
9 | use lib '@libexecdir@'; | ||
9 | use utils qw(%ERRORS &print_revision &support &usage); | 10 | use utils qw(%ERRORS &print_revision &support &usage); |
10 | 11 | ||
11 | $PROGNAME = "check_breeze"; | 12 | $PROGNAME = "check_breeze"; |
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index 99948a4..4805434 100755 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl | |||
@@ -26,6 +26,7 @@ use vars qw($opt_P $opt_V $opt_h $opt_H $opt_s $opt_W $opt_u $opt_p $opt_w $opt_ | |||
26 | use vars qw($PROGNAME); | 26 | use vars qw($PROGNAME); |
27 | use FindBin; | 27 | use FindBin; |
28 | use lib "$FindBin::Bin"; | 28 | use lib "$FindBin::Bin"; |
29 | use lib '@libexecdir@'; | ||
29 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); | 30 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); |
30 | 31 | ||
31 | sub print_help (); | 32 | sub print_help (); |
diff --git a/plugins-scripts/check_file_age.pl b/plugins-scripts/check_file_age.pl index 5e062de..453e0f5 100755 --- a/plugins-scripts/check_file_age.pl +++ b/plugins-scripts/check_file_age.pl | |||
@@ -25,7 +25,9 @@ use English; | |||
25 | use Getopt::Long; | 25 | use Getopt::Long; |
26 | use File::stat; | 26 | use File::stat; |
27 | use vars qw($PROGNAME); | 27 | use vars qw($PROGNAME); |
28 | use lib "."; | 28 | use FindBin; |
29 | use lib "$FindBin::Bin"; | ||
30 | use lib '@libexecdir@'; | ||
29 | use utils qw (%ERRORS &print_revision &support); | 31 | use utils qw (%ERRORS &print_revision &support); |
30 | 32 | ||
31 | sub print_help (); | 33 | sub print_help (); |
diff --git a/plugins-scripts/check_flexlm.pl b/plugins-scripts/check_flexlm.pl index 49d674d..5f3ed59 100755 --- a/plugins-scripts/check_flexlm.pl +++ b/plugins-scripts/check_flexlm.pl | |||
@@ -37,6 +37,7 @@ use Getopt::Long; | |||
37 | use vars qw($opt_V $opt_h $opt_F $opt_t $verbose $PROGNAME); | 37 | use vars qw($opt_V $opt_h $opt_F $opt_t $verbose $PROGNAME); |
38 | use FindBin; | 38 | use FindBin; |
39 | use lib "$FindBin::Bin"; | 39 | use lib "$FindBin::Bin"; |
40 | use lib '@libexecdir@'; | ||
40 | use utils qw(%ERRORS &print_revision &support &usage); | 41 | use utils qw(%ERRORS &print_revision &support &usage); |
41 | 42 | ||
42 | $PROGNAME="check_flexlm"; | 43 | $PROGNAME="check_flexlm"; |
diff --git a/plugins-scripts/check_ifoperstatus.pl b/plugins-scripts/check_ifoperstatus.pl index 1a7fbba..cf2c7b5 100755 --- a/plugins-scripts/check_ifoperstatus.pl +++ b/plugins-scripts/check_ifoperstatus.pl | |||
@@ -37,6 +37,7 @@ use POSIX; | |||
37 | use strict; | 37 | use strict; |
38 | use FindBin; | 38 | use FindBin; |
39 | use lib "$FindBin::Bin"; | 39 | use lib "$FindBin::Bin"; |
40 | use lib '@libexecdir@'; | ||
40 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 41 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
41 | 42 | ||
42 | use Net::SNMP; | 43 | use Net::SNMP; |
diff --git a/plugins-scripts/check_ifstatus.pl b/plugins-scripts/check_ifstatus.pl index e9e6214..709ad17 100755 --- a/plugins-scripts/check_ifstatus.pl +++ b/plugins-scripts/check_ifstatus.pl | |||
@@ -34,6 +34,7 @@ use POSIX; | |||
34 | use strict; | 34 | use strict; |
35 | use FindBin; | 35 | use FindBin; |
36 | use lib "$FindBin::Bin"; | 36 | use lib "$FindBin::Bin"; |
37 | use lib '@libexecdir@'; | ||
37 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 38 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
38 | 39 | ||
39 | use Net::SNMP; | 40 | use Net::SNMP; |
@@ -220,7 +221,7 @@ foreach $key (keys %ifStatus) { | |||
220 | $ifexclude, | 221 | $ifexclude, |
221 | $ifunused); | 222 | $ifunused); |
222 | } | 223 | } |
223 | my $perfdata = sprintf("up=%d,down=%d,dormant=%d,excluded=%d,unused=%d",$ifup,$ifdown,$ifdormant,$ifexclude,$ifunused); | 224 | my $perfdata = sprintf("up=%d down=%d dormant=%d excluded=%d unused=%d",$ifup,$ifdown,$ifdormant,$ifexclude,$ifunused); |
224 | print ("$state: $answer |$perfdata\n"); | 225 | print ("$state: $answer |$perfdata\n"); |
225 | exit $ERRORS{$state}; | 226 | exit $ERRORS{$state}; |
226 | 227 | ||
diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index afedfb9..6d40cf5 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl | |||
@@ -51,6 +51,7 @@ use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $verbose); | |||
51 | use vars qw($PROGNAME); | 51 | use vars qw($PROGNAME); |
52 | use FindBin; | 52 | use FindBin; |
53 | use lib "$FindBin::Bin"; | 53 | use lib "$FindBin::Bin"; |
54 | use lib '@libexecdir@'; | ||
54 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); | 55 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); |
55 | 56 | ||
56 | # ----------------------------------------------------[ Function Prototypes ]-- | 57 | # ----------------------------------------------------[ Function Prototypes ]-- |
diff --git a/plugins-scripts/check_mailq.pl b/plugins-scripts/check_mailq.pl index df1385d..bd78981 100755 --- a/plugins-scripts/check_mailq.pl +++ b/plugins-scripts/check_mailq.pl | |||
@@ -33,6 +33,7 @@ use vars qw($opt_V $opt_h $opt_v $verbose $PROGNAME $opt_w $opt_c $opt_t | |||
33 | %srcdomains %dstdomains); | 33 | %srcdomains %dstdomains); |
34 | use FindBin; | 34 | use FindBin; |
35 | use lib "$FindBin::Bin"; | 35 | use lib "$FindBin::Bin"; |
36 | use lib '@libexecdir@'; | ||
36 | use utils qw(%ERRORS &print_revision &support &usage ); | 37 | use utils qw(%ERRORS &print_revision &support &usage ); |
37 | 38 | ||
38 | 39 | ||
diff --git a/plugins-scripts/check_mssql.pl b/plugins-scripts/check_mssql.pl index a3f497c..1f38788 100755 --- a/plugins-scripts/check_mssql.pl +++ b/plugins-scripts/check_mssql.pl | |||
@@ -29,7 +29,9 @@ | |||
29 | use DBI; | 29 | use DBI; |
30 | use DBD::Sybase; | 30 | use DBD::Sybase; |
31 | use Getopt::Long; | 31 | use Getopt::Long; |
32 | use lib "."; | 32 | use FindBin; |
33 | use lib "$FindBin::Bin"; | ||
34 | use lib '@libexecdir@'; | ||
33 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 35 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
34 | use strict; | 36 | use strict; |
35 | 37 | ||
diff --git a/plugins-scripts/check_netdns.pl b/plugins-scripts/check_netdns.pl index 82939bf..59c81a9 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"; |
diff --git a/plugins-scripts/check_rpc.pl b/plugins-scripts/check_rpc.pl index cbdeceb..b1c6147 100755 --- a/plugins-scripts/check_rpc.pl +++ b/plugins-scripts/check_rpc.pl | |||
@@ -22,6 +22,7 @@ | |||
22 | use strict; | 22 | use strict; |
23 | use FindBin; | 23 | use FindBin; |
24 | use lib "$FindBin::Bin"; | 24 | use lib "$FindBin::Bin"; |
25 | use lib '@libexecdir@'; | ||
25 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 26 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
26 | use vars qw($PROGNAME); | 27 | use vars qw($PROGNAME); |
27 | my ($verbose,@proto,%prognum,$host,$response,$prognum,$port,$cmd,$progver,$state); | 28 | my ($verbose,@proto,%prognum,$host,$response,$prognum,$port,$cmd,$progver,$state); |
diff --git a/plugins-scripts/check_wave.pl b/plugins-scripts/check_wave.pl index 979416e..ee0fda4 100755 --- a/plugins-scripts/check_wave.pl +++ b/plugins-scripts/check_wave.pl | |||
@@ -5,6 +5,7 @@ | |||
5 | use strict; | 5 | use strict; |
6 | use FindBin; | 6 | use FindBin; |
7 | use lib "$FindBin::Bin"; | 7 | use lib "$FindBin::Bin"; |
8 | use lib '@libexecdir@'; | ||
8 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 9 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
9 | use vars qw($PROGNAME); | 10 | use vars qw($PROGNAME); |
10 | use Getopt::Long; | 11 | use Getopt::Long; |