Code

Fix Debian bug #545940: Failure when run via ePN
[nagiosplug.git] / plugins-scripts / check_breeze.pl
index 68cdbe8cb99bc18af7d18f25051ee3c1b7165f42..a4e8542cbe8ca3c4986b8653e636c28262c3570e 100755 (executable)
@@ -3,7 +3,7 @@
 
 use strict;
 use Getopt::Long;
-use vars qw($opt_V $opt_h $opt_H $opt_w $opt_c $PROGNAME);
+use vars qw($opt_V $opt_h $opt_w $opt_c $opt_H $opt_C $PROGNAME);
 use lib utils.pm ;
 use utils qw(%ERRORS &print_revision &support &usage);
 
@@ -26,7 +26,7 @@ GetOptions
         "C=s" => \$opt_C, "community=s" => \$opt_C);
 
 if ($opt_V) {
-       print_revision($PROGNAME,'$Revision$');
+       print_revision($PROGNAME,'@NP_VERSION@');
        exit $ERRORS{'OK'};
 }
 
@@ -65,7 +65,7 @@ sub print_usage () {
 }
 
 sub print_help () {
-       print_revision($PROGNAME,'$Revision$');
+       print_revision($PROGNAME,'@NP_VERSION@');
        print "Copyright (c) 2000 Jeffrey Blank/Karl DeBisschop
 
 This plugin reports the signal strength of a Breezecom wireless equipment