aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rwxr-xr-xnagios-plugins/check_kernel_status4
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 715c9d8..cd5395a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ sitesummary (0.1.11) UNRELEASED; urgency=low
* Remove obsolete code from sitesummary postinst, used when
migrating apache config in sitesummary version 0.0.7.
* Add Alexander Alemayhu as uploader.
+ * Adjust nagios-plugins/check_kernel_status to avoid perl warning on
+ Debian and Ubuntu.
-- Petter Reinholdtsen <pere@debian.org> Thu, 21 Aug 2014 10:21:24 +0200
diff --git a/nagios-plugins/check_kernel_status b/nagios-plugins/check_kernel_status
index a1a60b8..cd2547e 100755
--- a/nagios-plugins/check_kernel_status
+++ b/nagios-plugins/check_kernel_status
@@ -25,7 +25,7 @@ if ( -e '/proc/version_signature' )
$sig = `cat /proc/version_signature`;
if ( $sig =~ /.* (\d+)\.(\d+)\.(\d+)-(\d+)\.(\d+)-[generic|server]/ )
{
- @running_version = ($1, $2, $3, $4, $5);
+ @running_version = ($1, $2, $3, $4, $5, 0);
}
else
{
@@ -47,7 +47,7 @@ elsif ( -e '/proc/version' )
)
{
- @running_version = ($1, $2, $3, $4, $5, $6);
+ @running_version = ($1, $2, $3, $4, $5 || 0, $6 || 0);
}
else
{