aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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' )