aboutsummaryrefslogtreecommitdiffstats
path: root/nagios-plugins
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2011-11-14 10:33:02 +0000
committerPetter Reinholdtsen <pere@hungry.com>2011-11-14 10:33:02 +0000
commitc32f5955c5e8b5f1fa069ef037a9164b71aee63d (patch)
tree22d8cf88dfb2692a369596b39b523d4a354be80f /nagios-plugins
parent5b55ccf8bdcf39c84e3a26bf549f9424fec35e85 (diff)
downloadsitesummary-c32f5955c5e8b5f1fa069ef037a9164b71aee63d.tar.gz
sitesummary-c32f5955c5e8b5f1fa069ef037a9164b71aee63d.tar.bz2
sitesummary-c32f5955c5e8b5f1fa069ef037a9164b71aee63d.tar.xz
Use warnings instead of -w to ensure warnings are enabled no matter how the script is called. Prepare for a new release.
Diffstat (limited to 'nagios-plugins')
-rwxr-xr-xnagios-plugins/check_kernel_status3
1 files changed, 2 insertions, 1 deletions
diff --git a/nagios-plugins/check_kernel_status b/nagios-plugins/check_kernel_status
index bee9dfe..cd1c96d 100755
--- a/nagios-plugins/check_kernel_status
+++ b/nagios-plugins/check_kernel_status
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
# 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
@@ -7,6 +7,7 @@
# http://www.monitoringexchange.org/attachment/download/Check-Plugins/Operating-Systems/Linux/Running-kernel-compared-to-installed-kernel-version/check_kernel_status
use strict;
+use warnings;
my $OK = 0;
my $WARN = 1;