aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--debian/changelog8
-rwxr-xr-xnagios-plugins/check_kernel_status10
2 files changed, 13 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index cf3d06e..af4140f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+sitesummary (0.0.68+nmu1) UNRELEASED; urgency=low
+
+ * Add '-w' and 'my' to nagios-plugins/check_kernel_status. This seems
+ to help nagios' embedded perl interpreter to run the script after
+ reboot.
+
+ -- Andreas B. Mundt <andi.mundt@web.de> Thu, 16 Jun 2011 20:33:54 +0200
+
sitesummary (0.0.68) unstable; urgency=low
[ Ronny Aasen ]
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' )