X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fcheck_apc_ups.pl;h=74ae229d2516eaa4072a1ad6f5f096539b39fecf;hb=c370a35caaa236b154367663307081ec50eb5ae0;hp=dd979f5212f265ef32d154e4fb7f2169f0e75a66;hpb=005a4281f4272114a7c2c56bc48d9640b3a47531;p=nagiosplug.git diff --git a/contrib/check_apc_ups.pl b/contrib/check_apc_ups.pl index dd979f5..74ae229 100644 --- a/contrib/check_apc_ups.pl +++ b/contrib/check_apc_ups.pl @@ -9,18 +9,11 @@ # remaining: hh:mm:ss" if all is well, and a list of specific problems # if something is broken. -BEGIN { - if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { - $runtimedir = $1; - $PROGNAME = $2; - } -} - use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_H $opt_T $opt_t $opt_R $opt_r $opt_L $opt_l $PROGNAME); -use lib $main::runtimedir; +use lib utils.pm; use utils qw(%ERRORS &print_revision &support &usage); sub print_help ();