aboutsummaryrefslogtreecommitdiffstats
path: root/nagios-plugins
diff options
context:
space:
mode:
authorAndreas B. Mundt <andi.mundt@web.de>2011-06-16 18:41:42 +0000
committerAndreas B. Mundt <andi.mundt@web.de>2011-06-16 18:41:42 +0000
commit23b5d6fd101027b32cd827863984e74febdf2c1f (patch)
tree81b5a9353c7c5dd1aaec8c051a84cd8dac16c190 /nagios-plugins
parentd40c39b48615329192835da929ceb2db7c6419a6 (diff)
downloadsitesummary-23b5d6fd101027b32cd827863984e74febdf2c1f.tar.gz
sitesummary-23b5d6fd101027b32cd827863984e74febdf2c1f.tar.bz2
sitesummary-23b5d6fd101027b32cd827863984e74febdf2c1f.tar.xz
Add '-w' and 'my' to nagios-plugins/check_kernel_status. This seems
to help nagios' embedded perl interpreter to run the script after reboot.
Diffstat (limited to 'nagios-plugins')
-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' )