Code

Removing CVS/SVN tags and replacing with git-based versioning
[nagiosplug.git] / contrib / check_apc_ups.pl
index dd979f5212f265ef32d154e4fb7f2169f0e75a66..6bf176625ef6453e786a7924e89027e877295437 100644 (file)
@@ -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 "/usr/local/nagios/libexec";
 use utils qw(%ERRORS &print_revision &support &usage);
 
 sub print_help ();
@@ -45,7 +38,7 @@ GetOptions
         "H=s" => \$opt_H, "hostname=s"         => \$opt_H);
 
 if ($opt_V) {
-       print_revision($PROGNAME,'$Revision$');
+       print_revision($PROGNAME,'$Revision: 1771 $');
        exit $ERRORS{'OK'};
 }
 
@@ -259,7 +252,7 @@ sub print_usage () {
 }
 
 sub print_help () {
-       print_revision($PROGNAME,'$Revision$');
+       print_revision($PROGNAME,'$Revision: 1771 $');
        print "Copyright (c) 2001 Gerald Combs/Jeffrey Blank/Karl DeBisschop
 
 This plugin reports the status of an APC UPS equipped with an SNMP management