[-]
[+]
|
Changed |
check_updates.changes
|
|
[-]
[+]
|
Changed |
check_updates.spec
^
|
|
[-]
[+]
|
Changed |
check_updates-1.6.6.tar.bz2/AUTHORS
^
|
@@ -7,10 +7,11 @@
* Tomas Edwardsson for a patch fixing the detection of RH EL 6 systems
* Cott Lang for the Amazon Linux patch
* Joop Boonen for the yum arguments patch
- * Franky Van Liedekerke for the perfomance data and security plugin patch
+ * Franky Van Liedekerke for the perfomance data and security plugin
+ patch and for the openvz kernels patch
# File version information:
-# $Id: AUTHORS 1332 2013-05-11 12:36:35Z corti $
-# $Revision: 1332 $
+# $Id: AUTHORS 1347 2013-10-10 12:48:21Z corti $
+# $Revision: 1347 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/AUTHORS $
-# $Date: 2013-05-11 14:36:35 +0200 (Sat, 11 May 2013) $
+# $Date: 2013-10-10 14:48:21 +0200 (Thu, 10 Oct 2013) $
|
[-]
[+]
|
Changed |
check_updates-1.6.6.tar.bz2/Changes
^
|
@@ -1,3 +1,8 @@
+2013-10-10 Matteo Corti <matteo.corti@id.ethz.ch>
+
+ * Version 1.6.6
+ * check_updates: support for openvz kernels
+
2013-07-15 Matteo Corti <matteo.corti@id.ethz.ch>
* Version 1.6.5
@@ -228,7 +233,7 @@
* check_updates: recognizes CentOS
# File version information:
-# $Id: Changes 1338 2013-07-15 08:12:46Z corti $
-# $Revision: 1338 $
+# $Id: Changes 1347 2013-10-10 12:48:21Z corti $
+# $Revision: 1347 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/Changes $
-# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
+# $Date: 2013-10-10 14:48:21 +0200 (Thu, 10 Oct 2013) $
|
[-]
[+]
|
Changed |
check_updates-1.6.6.tar.bz2/NEWS
^
|
@@ -1,3 +1,4 @@
+2013-10-10: 1.6.6 - Support openvz kernels
2013-07-15: 1.6.5 - Disabled ePN by default
2013-06-18: 1.6.4 - Handle wide Yum output
2013-05-11: 1.6.3 - Do not print performance data on security updates if Yum
@@ -52,7 +53,7 @@
First stable release
2008-02-21: 0.9.9 - checks if the running kernel is the latest installed
-# $Id: NEWS 1338 2013-07-15 08:12:46Z corti $
-# $Revision: 1338 $
+# $Id: NEWS 1347 2013-10-10 12:48:21Z corti $
+# $Revision: 1347 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/NEWS $
-# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
+# $Date: 2013-10-10 14:48:21 +0200 (Thu, 10 Oct 2013) $
|
[-]
[+]
|
Changed |
check_updates-1.6.6.tar.bz2/check_updates
^
|
@@ -20,17 +20,17 @@
# enable substitution with:
# $ svn propset svn:keywords "Id Revision HeadURL Source Date"
#
-# $Id: check_updates 1338 2013-07-15 08:12:46Z corti $
-# $Revision: 1338 $
+# $Id: check_updates 1347 2013-10-10 12:48:21Z corti $
+# $Revision: 1347 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/check_updates $
-# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
+# $Date: 2013-10-10 14:48:21 +0200 (Thu, 10 Oct 2013) $
use 5.00800;
use strict;
use warnings;
-our $VERSION = '1.6.5';
+our $VERSION = '1.6.6';
use Carp;
use English qw(-no_match_vars);
@@ -39,7 +39,6 @@
use Nagios::Plugin;
use POSIX qw(uname);
use Sort::Versions;
-
use Readonly;
Readonly our $EXIT_UNKNOWN => 3;
@@ -198,6 +197,9 @@
# remove Xen
$kernel =~ s/xen-//imxs;
+ # remove openvz
+ $kernel =~ s/o?vzkernel-//imxs;
+
# remove architecture
$kernel =~ s/[.](i[3-6]86|ppc|x86_64)$//mxs;
@@ -226,6 +228,12 @@
# See also : n/a
sub check_running_kernel {
+ # return if running in openvz client: /proc/vz is always present but
+ # /proc/bc only exists on node, but not inside container.
+ if ( -d '/proc/vz' && !( -d '/proc/bc' ) ) {
+ return;
+ }
+
if ( !$bootcheck ) {
return;
}
@@ -246,8 +254,13 @@
my @versions;
- for
- my $rpm ( ( "$package", "$package-smp", "$package-PAE", "$package-xen" ) )
+ for my $rpm (
+ (
+ "$package", "$package-smp", "$package-PAE", "$package-xen",
+ 'ovzkernel', 'vzkernel'
+ )
+ )
+
{
my $output;
|
[-]
[+]
|
Changed |
check_updates-1.6.6.tar.bz2/check_updates.pod
^
|
@@ -1,9 +1,9 @@
################################################################################
# File version information:
-# $Id: check_updates.pod 1338 2013-07-15 08:12:46Z corti $
-# $Revision: 1338 $
+# $Id: check_updates.pod 1347 2013-10-10 12:48:21Z corti $
+# $Revision: 1347 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/check_updates.pod $
-# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
+# $Date: 2013-10-10 14:48:21 +0200 (Thu, 10 Oct 2013) $
################################################################################
=pod
@@ -20,7 +20,7 @@
=head1 VERSION
-Version 1.6.5
+Version 1.6.6
=head1 SYNOPSIS
|
[-]
[+]
|
Changed |
check_updates-1.6.6.tar.bz2/check_updates.spec
^
|
@@ -1,12 +1,12 @@
################################################################################
# File version information:
-# $Id: check_updates.spec 1338 2013-07-15 08:12:46Z corti $
-# $Revision: 1338 $
+# $Id: check_updates.spec 1347 2013-10-10 12:48:21Z corti $
+# $Revision: 1347 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/check_updates.spec $
-# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
+# $Date: 2013-10-10 14:48:21 +0200 (Thu, 10 Oct 2013) $
################################################################################
-%define version 1.6.5
+%define version 1.6.6
%define release 0
%define sourcename check_updates
%define packagename nagios-plugins-check-updates
@@ -73,6 +73,9 @@
%{_mandir}/man1/%{sourcename}.1*
%changelog
+* Thu Oct 10 2013 Matteo Corti <matteo.corti@id.ethz.ch> - 1.6.6-0
+- Updated to 1.6.6 (openvz kernel support)
+
* Mon Jul 15 2013 Matteo Corti <matteo.corti@id.ethz.ch> - 1.6.5-0
- Updated to 1.6.5 (disabled ePN)
|
[-]
[+]
|
Changed |
check_updates-1.6.6.tar.bz2/t/00_modules.t
^
|
@@ -12,7 +12,7 @@
use Test::More tests => 19;
-our $VERSION = '1.6.5';
+our $VERSION = '1.6.6';
use_ok('Carp');
|
[-]
[+]
|
Changed |
check_updates-1.6.6.tar.bz2/t/01_functions.t
^
|
@@ -14,7 +14,7 @@
use File::Spec;
-our $VERSION = '1.6.5';
+our $VERSION = '1.6.6';
my $check_updates = File::Spec->catfile(qw(blib script check_updates));
|