aboutsummaryrefslogtreecommitdiffstats
path: root/nagios-plugins/check_kernel_status
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-plugins/check_kernel_status')
-rwxr-xr-xnagios-plugins/check_kernel_status10
1 files changed, 5 insertions, 5 deletions
diff --git a/nagios-plugins/check_kernel_status b/nagios-plugins/check_kernel_status
index b7faff6..6e972e6 100755
--- a/nagios-plugins/check_kernel_status
+++ b/nagios-plugins/check_kernel_status
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl -w
# check_kernel_status : check if the running kernel is the latest installed
# By Toni Van Remortel [toni.van.remortel@p-ops.be]
# 2008-07-28
@@ -6,10 +6,10 @@
# Downloaded from
# http://www.monitoringexchange.org/attachment/download/Check-Plugins/Operating-Systems/Linux/Running-kernel-compared-to-installed-kernel-version/check_kernel_status
-$OK = 0;
-$WARN = 1;
-$CRIT = 2;
-$UNKN = 3;
+my $OK = 0;
+my $WARN = 1;
+my $CRIT = 2;
+my $UNKN = 3;
# First, find the current running kernel version
if ( -e '/proc/version_signature' )