[debian-edu-commits] debian-edu/upstream/ 01/02: Adjust nagios kernel version checking module to work with 4.x kernels.
Holger Levsen
holger at layer-acht.org
Sat Dec 2 12:50:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch stretch
in repository sitesummary.
commit a83e36f418d79f5494846c67108b345378148679
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Sat Dec 2 01:19:33 2017 +0100
Adjust nagios kernel version checking module to work with 4.x kernels.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 6 ++++++
nagios-plugins/check_kernel_status | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 7ae11b2..6df005b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+sitesummary (0.1.28+deb9u1) UNRELEASED; urgency=medium
+
+ * Adjust nagios kernel version checking module to work with 4.x kernels.
+
+ -- Wolfgang Schweer <wschweer at arcor.de> Sat, 02 Dec 2017 00:54:48 +0100
+
sitesummary (0.1.28) unstable; urgency=medium
[ Wolfgang Schweer ]
diff --git a/nagios-plugins/check_kernel_status b/nagios-plugins/check_kernel_status
index 742f90c..b9b8d75 100755
--- a/nagios-plugins/check_kernel_status
+++ b/nagios-plugins/check_kernel_status
@@ -72,7 +72,7 @@ my $dpkg_list = `COLUMNS=1024 dpkg -l`;
my $dpkg;
for my $line (split("\n", $dpkg_list)) {
chomp $line;
- $dpkg = $line if ($line =~ m/^ii.+linux-image-(2.6|3.\d)/);
+ $dpkg = $line if ($line =~ m/^ii.+linux-image-(2.6|3.\d|4.\d)/);
}
# Now, which OS is it, and which footprint do they use?
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/sitesummary.git
More information about the debian-edu-commits
mailing list