aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rwxr-xr-xnagios-plugins/check_kernel_status5
2 files changed, 7 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 0825ea3..8218165 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ sitesummary (0.1.21) UNRELEASED; urgency=medium
[ Petter Reinholdtsen ]
* Add Brazilian Portuguese (pt_BR) translation by Adriano Rafael Gomes
(Closes: #816940).
+ * Adjust nagios kernel version checking module to work with recent
+ Ubuntu kernels (Closes: #803720). Patch from Daniele Palumbo.
-- Wolfgang Schweer <wschweer@arcor.de> Sun, 15 May 2016 10:30:13 +0200
diff --git a/nagios-plugins/check_kernel_status b/nagios-plugins/check_kernel_status
index 102b428..742f90c 100755
--- a/nagios-plugins/check_kernel_status
+++ b/nagios-plugins/check_kernel_status
@@ -41,6 +41,7 @@ elsif ( -e '/proc/version' )
# New format in kernel package version 3.2.32-1, match first to also work with
# kernel 3.13 and later in Debian.
$sig =~ / Debian (\d+)\.(\d+)\.(\d+)-(\d+)/
+ || $sig =~ / Debian (\d+)\.(\d+)\.(\d+)-ckt(\d+)-(\d+)/
|| $sig =~ /\(Debian (\d+)\.(\d+)\.(\d+)\.dfsg\.(\d+)-(\d+)\)/
|| $sig =~ /\(Debian (\d+)\.(\d+)\.(\d+)\.dfsg\.(\d+)-(\d+)\w+(\d+)\)/
@@ -110,6 +111,10 @@ elsif ( $dpkg =~ / (\d+)\.(\d+)\.(\d+)-(\d+)/ )
# Debian Lenny
@installed_version = ($1, $2, $3, $4, 0, 0);
}
+elsif( $dpkg =~ / (\d+)\.(\d+)\.(\d+)-ckt(\d+)-(\d+)/ )
+{
+ @installed_version = ($1, $2, $3, $4, $5, 0);
+}
else
{
print "UNKNOWN - Could not determine installed version ($dpkg).\n";