diff options
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_breeze.pl | 5 | ||||
-rwxr-xr-x | plugins-scripts/check_flexlm.pl | 5 | ||||
-rwxr-xr-x | plugins-scripts/check_ircd.pl | 4 | ||||
-rwxr-xr-x | plugins-scripts/check_netdns.pl | 8 | ||||
-rwxr-xr-x | plugins-scripts/check_ntp.pl | 7 | ||||
-rwxr-xr-x | plugins-scripts/check_wave.pl | 4 |
6 files changed, 20 insertions, 13 deletions
diff --git a/plugins-scripts/check_breeze.pl b/plugins-scripts/check_breeze.pl index bd73f42..c7728b8 100755 --- a/plugins-scripts/check_breeze.pl +++ b/plugins-scripts/check_breeze.pl | |||
@@ -4,10 +4,11 @@ | |||
4 | use strict; | 4 | use strict; |
5 | use Getopt::Long; | 5 | use Getopt::Long; |
6 | use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $PROGNAME); | 6 | use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $PROGNAME); |
7 | use FindBin; | 7 | use lib utils.pm ; |
8 | use lib "$FindBin::Bin" ; | ||
9 | use utils qw(%ERRORS &print_revision &support &usage); | 8 | use utils qw(%ERRORS &print_revision &support &usage); |
10 | 9 | ||
10 | $PROGNAME = "check_breeze"; | ||
11 | |||
11 | sub print_help (); | 12 | sub print_help (); |
12 | sub print_usage (); | 13 | sub print_usage (); |
13 | 14 | ||
diff --git a/plugins-scripts/check_flexlm.pl b/plugins-scripts/check_flexlm.pl index 595a0b3..6bda29b 100755 --- a/plugins-scripts/check_flexlm.pl +++ b/plugins-scripts/check_flexlm.pl | |||
@@ -33,10 +33,11 @@ | |||
33 | use strict; | 33 | use strict; |
34 | use Getopt::Long; | 34 | use Getopt::Long; |
35 | use vars qw($opt_V $opt_h $opt_F $verbose $PROGNAME); | 35 | use vars qw($opt_V $opt_h $opt_F $verbose $PROGNAME); |
36 | use FindBin ; | 36 | use lib utils.pm; |
37 | use lib "$FindBin::Bin"; | ||
38 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); | 37 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); |
39 | 38 | ||
39 | $PROGNAME="check_flexlm"; | ||
40 | |||
40 | sub print_help (); | 41 | sub print_help (); |
41 | sub print_usage (); | 42 | sub print_usage (); |
42 | 43 | ||
diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index 098a8e7..7a90a96 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl | |||
@@ -52,8 +52,7 @@ use strict; | |||
52 | use Getopt::Long; | 52 | use Getopt::Long; |
53 | use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $verbose); | 53 | use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $verbose); |
54 | use vars qw($PROGNAME); | 54 | use vars qw($PROGNAME); |
55 | use FindBin; | 55 | use lib utils.pm; |
56 | use lib "$FindBin::Bin"; | ||
57 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); | 56 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); |
58 | 57 | ||
59 | # ----------------------------------------------------[ Function Prototypes ]-- | 58 | # ----------------------------------------------------[ Function Prototypes ]-- |
@@ -71,6 +70,7 @@ $ENV{BASH_ENV} = ""; | |||
71 | 70 | ||
72 | # -----------------------------------------------------------------[ Global ]-- | 71 | # -----------------------------------------------------------------[ Global ]-- |
73 | 72 | ||
73 | $PROGNAME = "check_ircd"; | ||
74 | my $NICK="ircd$$"; | 74 | my $NICK="ircd$$"; |
75 | my $USER_INFO="monitor localhost localhost : "; | 75 | my $USER_INFO="monitor localhost localhost : "; |
76 | 76 | ||
diff --git a/plugins-scripts/check_netdns.pl b/plugins-scripts/check_netdns.pl index 65ad7be..6872b93 100755 --- a/plugins-scripts/check_netdns.pl +++ b/plugins-scripts/check_netdns.pl | |||
@@ -6,6 +6,9 @@ | |||
6 | # Copyright 2000, virCIO, LLP | 6 | # Copyright 2000, virCIO, LLP |
7 | # | 7 | # |
8 | # $Log$ | 8 | # $Log$ |
9 | # Revision 1.3 2002/05/07 05:35:49 sghosh | ||
10 | # 2nd fix for ePN | ||
11 | # | ||
9 | # Revision 1.2 2002/05/02 16:43:29 sghosh | 12 | # Revision 1.2 2002/05/02 16:43:29 sghosh |
10 | # fix for embedded perl | 13 | # fix for embedded perl |
11 | # | 14 | # |
@@ -25,10 +28,11 @@ | |||
25 | 28 | ||
26 | use Getopt::Long; | 29 | use Getopt::Long; |
27 | use Net::DNS; | 30 | use Net::DNS; |
28 | use Findbin; | 31 | use lib utils.pm; |
29 | use lib "$FindBin::Bin"; | ||
30 | use utils ; | 32 | use utils ; |
31 | 33 | ||
34 | my $PROGNAME = "check_netdns"; | ||
35 | |||
32 | Getopt::Long::Configure(`bundling`); | 36 | Getopt::Long::Configure(`bundling`); |
33 | GetOptions("V" => $opt_V, "version" => $opt_V, | 37 | GetOptions("V" => $opt_V, "version" => $opt_V, |
34 | "h" => $opt_h, "help" => $opt_h, | 38 | "h" => $opt_h, "help" => $opt_h, |
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index 918ad50..9a58d78 100755 --- a/plugins-scripts/check_ntp.pl +++ b/plugins-scripts/check_ntp.pl | |||
@@ -47,7 +47,7 @@ | |||
47 | # source. This happens while starting up and if contact | 47 | # source. This happens while starting up and if contact |
48 | # with master has been lost. | 48 | # with master has been lost. |
49 | # | 49 | # |
50 | # Modifed to run under Embedded Perl - patch from Douglas Warner | 50 | # Modifed to run under Embedded Perl |
51 | # | 51 | # |
52 | 52 | ||
53 | 53 | ||
@@ -56,10 +56,11 @@ use POSIX; | |||
56 | use strict; | 56 | use strict; |
57 | use Getopt::Long; | 57 | use Getopt::Long; |
58 | use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $verbose $PROGNAME); | 58 | use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $verbose $PROGNAME); |
59 | use FindBin; | 59 | use lib utils.pm ; |
60 | use lib "$FindBin::Bin"; | ||
61 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 60 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
62 | 61 | ||
62 | $PROGNAME="check_ntp"; | ||
63 | |||
63 | sub print_help (); | 64 | sub print_help (); |
64 | sub print_usage (); | 65 | sub print_usage (); |
65 | 66 | ||
diff --git a/plugins-scripts/check_wave.pl b/plugins-scripts/check_wave.pl index 6d58e4f..a6b3d2d 100755 --- a/plugins-scripts/check_wave.pl +++ b/plugins-scripts/check_wave.pl | |||
@@ -4,8 +4,7 @@ | |||
4 | 4 | ||
5 | 5 | ||
6 | use strict; | 6 | use strict; |
7 | use FindBin; | 7 | use lib utils.pm; |
8 | use lib "$Findbin::Bin"; | ||
9 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 8 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
10 | use vars qw($PROGNAME); | 9 | use vars qw($PROGNAME); |
11 | use Getopt::Long; | 10 | use Getopt::Long; |
@@ -13,6 +12,7 @@ use vars qw($opt_V $opt_h $verbose $opt_w $opt_c $opt_H); | |||
13 | my (@test, $low1, $med1, $high1, $snr, $low2, $med2, $high2); | 12 | my (@test, $low1, $med1, $high1, $snr, $low2, $med2, $high2); |
14 | my ($low, $med, $high, $lowavg, $medavg, $highavg, $tot, $ss); | 13 | my ($low, $med, $high, $lowavg, $medavg, $highavg, $tot, $ss); |
15 | 14 | ||
15 | $PROGNAME = "check_wave"; | ||
16 | sub print_help (); | 16 | sub print_help (); |
17 | sub print_usage (); | 17 | sub print_usage (); |
18 | 18 | ||