aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts
diff options
context:
space:
mode:
authorGravatar Bernd Arnold <wopfel@gmail.com> 2018-05-30 19:11:06 +0200
committerGravatar Bernd Arnold <wopfel@gmail.com> 2018-05-30 19:11:06 +0200
commitde0872e2d71caec807c659c7f518adcbefe7e665 (patch)
treebd5be2579bfa3407283e239879a96059e0d5443e /plugins-scripts
parent96c8dd89353be67d44ce7a21b90f621ad89a2984 (diff)
downloadmonitoring-plugins-de0872e2d71caec807c659c7f518adcbefe7e665.tar.gz
Replaced my values with macros
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_uptime9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins-scripts/check_uptime b/plugins-scripts/check_uptime
index 4bc95282..09600df4 100755
--- a/plugins-scripts/check_uptime
+++ b/plugins-scripts/check_uptime
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!@PERL@ -w
# check_uptime - check uptime to see how long the system is running.
#
@@ -29,14 +29,13 @@ use vars qw($opt_V $opt_h $opt_v $verbose $PROGNAME $opt_w $opt_c
$status $state $msg);
use FindBin;
use lib "$FindBin::Bin";
-use lib "/usr/lib/monitoring-plugins/";
use utils qw(%ERRORS &print_revision &support &usage );
sub print_help ();
sub print_usage ();
sub process_arguments ();
-#$ENV{'PATH'}='/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin';
+$ENV{'PATH'}='@TRUSTED_PATH@';
$ENV{'BASH_ENV'}='';
$ENV{'ENV'}='';
$PROGNAME = "check_uptime";
@@ -158,7 +157,7 @@ sub process_arguments(){
);
if ($opt_V) {
- print_revision($PROGNAME,'2.2');
+ print_revision($PROGNAME,'@NP_VERSION@');
exit $ERRORS{'UNKNOWN'};
}
@@ -232,7 +231,7 @@ sub print_usage () {
}
sub print_help () {
- print_revision($PROGNAME,'2.2');
+ print_revision($PROGNAME,'@NP_VERSION@');
print "Copyright (c) 2002 Subhendu Ghosh/Carlos Canau/Benjamin Schmid\n";
print "Copyright (c) 2018 Bernd Arnold\n";
print "\n";