Code

check_host: Allocate a large-enough buffer for the host table.
[nagiosplug.git] / contrib / check_apc_ups.pl
index 74ae229d2516eaa4072a1ad6f5f096539b39fecf..6bf176625ef6453e786a7924e89027e877295437 100644 (file)
@@ -13,7 +13,7 @@ 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 utils.pm;
+use lib "/usr/local/nagios/libexec";
 use utils qw(%ERRORS &print_revision &support &usage);
 
 sub print_help ();
@@ -38,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'};
 }
 
@@ -252,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