aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_uptime.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-scripts/check_uptime.pl b/plugins-scripts/check_uptime.pl
index 8c1f3d20..27dc93ff 100755
--- a/plugins-scripts/check_uptime.pl
+++ b/plugins-scripts/check_uptime.pl
@@ -1,4 +1,4 @@
-#!@PERL@ -w
+#!/usr/bin/perl -w
# check_uptime - check uptime to see how long the system is running.
#
@@ -41,6 +41,8 @@ $ENV{'ENV'}='';
$PROGNAME = "check_uptime";
$state = $ERRORS{'UNKNOWN'};
+my $uptime_file = "/proc/uptime";
+
# Process arguments
@@ -54,8 +56,6 @@ if ($status){
# Get uptime info from file
-my $uptime_file = "/proc/uptime";
-
if ( ! -r $uptime_file ) {
print "ERROR: file '$uptime_file' is not readable\n";
exit $ERRORS{"UNKNOWN"};