diff options
-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 bd73f42a..c7728b8d 100755 --- a/plugins-scripts/check_breeze.pl +++ b/plugins-scripts/check_breeze.pl @@ -4,10 +4,11 @@ use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $PROGNAME); -use FindBin; -use lib "$FindBin::Bin" ; +use lib utils.pm ; use utils qw(%ERRORS &print_revision &support &usage); +$PROGNAME = "check_breeze"; + sub print_help (); sub print_usage (); diff --git a/plugins-scripts/check_flexlm.pl b/plugins-scripts/check_flexlm.pl index 595a0b34..6bda29bd 100755 --- a/plugins-scripts/check_flexlm.pl +++ b/plugins-scripts/check_flexlm.pl @@ -33,10 +33,11 @@ use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_F $verbose $PROGNAME); -use FindBin ; -use lib "$FindBin::Bin"; +use lib utils.pm; use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); +$PROGNAME="check_flexlm"; + sub print_help (); sub print_usage (); diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index 098a8e70..7a90a96b 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl @@ -52,8 +52,7 @@ use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $verbose); use vars qw($PROGNAME); -use FindBin; -use lib "$FindBin::Bin"; +use lib utils.pm; use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); # ----------------------------------------------------[ Function Prototypes ]-- @@ -71,6 +70,7 @@ $ENV{BASH_ENV} = ""; # -----------------------------------------------------------------[ Global ]-- +$PROGNAME = "check_ircd"; my $NICK="ircd$$"; my $USER_INFO="monitor localhost localhost : "; diff --git a/plugins-scripts/check_netdns.pl b/plugins-scripts/check_netdns.pl index 65ad7beb..6872b932 100755 --- a/plugins-scripts/check_netdns.pl +++ b/plugins-scripts/check_netdns.pl @@ -6,6 +6,9 @@ # Copyright 2000, virCIO, LLP # # $Log$ +# Revision 1.3 2002/05/07 05:35:49 sghosh +# 2nd fix for ePN +# # Revision 1.2 2002/05/02 16:43:29 sghosh # fix for embedded perl # @@ -25,10 +28,11 @@ use Getopt::Long; use Net::DNS; -use Findbin; -use lib "$FindBin::Bin"; +use lib utils.pm; use utils ; +my $PROGNAME = "check_netdns"; + Getopt::Long::Configure(`bundling`); GetOptions("V" => $opt_V, "version" => $opt_V, "h" => $opt_h, "help" => $opt_h, diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index 918ad504..9a58d78a 100755 --- a/plugins-scripts/check_ntp.pl +++ b/plugins-scripts/check_ntp.pl @@ -47,7 +47,7 @@ # source. This happens while starting up and if contact # with master has been lost. # -# Modifed to run under Embedded Perl - patch from Douglas Warner +# Modifed to run under Embedded Perl # @@ -56,10 +56,11 @@ use POSIX; use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $verbose $PROGNAME); -use FindBin; -use lib "$FindBin::Bin"; +use lib utils.pm ; use utils qw($TIMEOUT %ERRORS &print_revision &support); +$PROGNAME="check_ntp"; + sub print_help (); sub print_usage (); diff --git a/plugins-scripts/check_wave.pl b/plugins-scripts/check_wave.pl index 6d58e4f4..a6b3d2de 100755 --- a/plugins-scripts/check_wave.pl +++ b/plugins-scripts/check_wave.pl @@ -4,8 +4,7 @@ use strict; -use FindBin; -use lib "$Findbin::Bin"; +use lib utils.pm; use utils qw($TIMEOUT %ERRORS &print_revision &support); use vars qw($PROGNAME); use Getopt::Long; @@ -13,6 +12,7 @@ use vars qw($opt_V $opt_h $verbose $opt_w $opt_c $opt_H); my (@test, $low1, $med1, $high1, $snr, $low2, $med2, $high2); my ($low, $med, $high, $lowavg, $medavg, $highavg, $tot, $ss); +$PROGNAME = "check_wave"; sub print_help (); sub print_usage (); |