diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2012-04-29 17:21:14 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2012-04-29 17:21:14 +0000 |
commit | a0f473f5e96ac92247e18eb082c05474689e2f82 (patch) | |
tree | 665b3a530aac729fdfcc0ad2391d79a1ac5715a6 | |
parent | 373962050eaf076635fa2b0c7717a2a69bfd9572 (diff) | |
download | sitesummary-a0f473f5e96ac92247e18eb082c05474689e2f82.tar.gz sitesummary-a0f473f5e96ac92247e18eb082c05474689e2f82.tar.bz2 sitesummary-a0f473f5e96ac92247e18eb082c05474689e2f82.tar.xz |
Add support in check_kernel_version for any 3.X kernel.
-rw-r--r-- | debian/changelog | 6 | ||||
-rwxr-xr-x | nagios-plugins/check_kernel_status | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index c729d1b..25e4fbd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sitesummary (0.1.4) UNRELEASED; urgency=low + + * Add support in check_kernel_version for any 3.X kernel. + + -- Petter Reinholdtsen <pere@debian.org> Sun, 29 Apr 2012 14:33:21 +0200 + sitesummary (0.1.3) unstable; urgency=low * Change temp file name created by nagios-plugins check_cups_queue diff --git a/nagios-plugins/check_kernel_status b/nagios-plugins/check_kernel_status index 59bbc49..0721f5c 100755 --- a/nagios-plugins/check_kernel_status +++ b/nagios-plugins/check_kernel_status @@ -58,14 +58,14 @@ else } # Next, find the installed kernel version -# Yes, as you can see, it is limited to 2.6 and 3.0 kernels here. +# Yes, as you can see, it is limited to 2.6 and 3.X kernels here. # But I assume that you don't need reboots anymore when this major # version has passed. 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.0)/); + $dpkg = $line if ($line =~ m/^ii.+linux-image-(2.6|3.\d)/); } # Now, which OS is it, and which footprint do they use? |