From 23b5d6fd101027b32cd827863984e74febdf2c1f Mon Sep 17 00:00:00 2001 From: "Andreas B. Mundt" Date: Thu, 16 Jun 2011 18:41:42 +0000 Subject: Add '-w' and 'my' to nagios-plugins/check_kernel_status. This seems to help nagios' embedded perl interpreter to run the script after reboot. --- nagios-plugins/check_kernel_status | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nagios-plugins/check_kernel_status') 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' ) -- cgit v1.2.3