[-]
[+]
|
Changed |
check_updates.changes
|
|
[-]
[+]
|
Changed |
check_updates.spec
^
|
|
[-]
[+]
|
Changed |
check_updates-1.6.5.tar.bz2/Changes
^
|
@@ -1,3 +1,8 @@
+2013-07-15 Matteo Corti <matteo.corti@id.ethz.ch>
+
+ * Version 1.6.5
+ * check_updates: disabled ePN
+
2013-06-18 Matteo Corti <matteo.corti@id.ethz.ch>
* Version 1.6.4
@@ -223,7 +228,7 @@
* check_updates: recognizes CentOS
# File version information:
-# $Id: Changes 1337 2013-06-18 05:53:05Z corti $
-# $Revision: 1337 $
+# $Id: Changes 1338 2013-07-15 08:12:46Z corti $
+# $Revision: 1338 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/Changes $
-# $Date: 2013-06-18 07:53:05 +0200 (Tue, 18 Jun 2013) $
+# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
|
[-]
[+]
|
Changed |
check_updates-1.6.5.tar.bz2/NEWS
^
|
@@ -1,3 +1,4 @@
+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
security plugin is not installed
@@ -51,7 +52,7 @@
First stable release
2008-02-21: 0.9.9 - checks if the running kernel is the latest installed
-# $Id: NEWS 1337 2013-06-18 05:53:05Z corti $
-# $Revision: 1337 $
+# $Id: NEWS 1338 2013-07-15 08:12:46Z corti $
+# $Revision: 1338 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/NEWS $
-# $Date: 2013-06-18 07:53:05 +0200 (Tue, 18 Jun 2013) $
+# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
|
[-]
[+]
|
Changed |
check_updates-1.6.5.tar.bz2/check_updates
^
|
@@ -1,5 +1,7 @@
#!perl
+# nagios: -epn
+
package main;
# check_updates is a Nagios plugin to check if RedHat or Fedora system
@@ -18,17 +20,17 @@
# enable substitution with:
# $ svn propset svn:keywords "Id Revision HeadURL Source Date"
#
-# $Id: check_updates 1337 2013-06-18 05:53:05Z corti $
-# $Revision: 1337 $
+# $Id: check_updates 1338 2013-07-15 08:12:46Z corti $
+# $Revision: 1338 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/check_updates $
-# $Date: 2013-06-18 07:53:05 +0200 (Tue, 18 Jun 2013) $
+# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
use 5.00800;
use strict;
use warnings;
-our $VERSION = '1.6.4';
+our $VERSION = '1.6.5';
use Carp;
use English qw(-no_match_vars);
@@ -163,7 +165,9 @@
$level = 0;
}
- if ( $level < $options->verbose ) {
+ # we check if options is defined as the it could be undefined if
+ # running from a unit test
+ if ( defined $options && $level < $options->verbose ) {
#<<<
print $message; ## no critic (RequireCheckedSyscalls)
#>>>
@@ -173,6 +177,15 @@
}
+##############################################################################
+# Usage : $kernel_version = clean_kernel_version( $kernel_version )
+# Purpose : removes everything but the version number from the kernel
+# version (e.g., PAE, xen, ...)
+# Returns : kernel version
+# Arguments : kernel_version : output of uname
+# Throws : n/a
+# Comments : n/a
+# See also : n/a
sub clean_kernel_version {
my $kernel = shift;
|
[-]
[+]
|
Changed |
check_updates-1.6.5.tar.bz2/check_updates.pod
^
|
@@ -1,9 +1,9 @@
################################################################################
# File version information:
-# $Id: check_updates.pod 1337 2013-06-18 05:53:05Z corti $
-# $Revision: 1337 $
+# $Id: check_updates.pod 1338 2013-07-15 08:12:46Z corti $
+# $Revision: 1338 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/check_updates.pod $
-# $Date: 2013-06-18 07:53:05 +0200 (Tue, 18 Jun 2013) $
+# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
################################################################################
=pod
@@ -20,7 +20,7 @@
=head1 VERSION
-Version 1.6.4
+Version 1.6.5
=head1 SYNOPSIS
|
[-]
[+]
|
Changed |
check_updates-1.6.5.tar.bz2/check_updates.spec
^
|
@@ -1,12 +1,12 @@
################################################################################
# File version information:
-# $Id: check_updates.spec 1337 2013-06-18 05:53:05Z corti $
-# $Revision: 1337 $
+# $Id: check_updates.spec 1338 2013-07-15 08:12:46Z corti $
+# $Revision: 1338 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_updates/check_updates.spec $
-# $Date: 2013-06-18 07:53:05 +0200 (Tue, 18 Jun 2013) $
+# $Date: 2013-07-15 10:12:46 +0200 (Mon, 15 Jul 2013) $
################################################################################
-%define version 1.6.4
+%define version 1.6.5
%define release 0
%define sourcename check_updates
%define packagename nagios-plugins-check-updates
@@ -73,6 +73,9 @@
%{_mandir}/man1/%{sourcename}.1*
%changelog
+* Mon Jul 15 2013 Matteo Corti <matteo.corti@id.ethz.ch> - 1.6.5-0
+- Updated to 1.6.5 (disabled ePN)
+
* Tue Jun 18 2013 Matteo Corti <matteo.corti@id.ethz.ch> - 1.6.4-0
- Updated to 1.6.4 (handle wide Yum output)
|
[-]
[+]
|
Changed |
check_updates-1.6.5.tar.bz2/t/00_modules.t
^
|
@@ -12,7 +12,7 @@
use Test::More tests => 19;
-our $VERSION = '1.4.15';
+our $VERSION = '1.6.5';
use_ok('Carp');
|
[-]
[+]
|
Changed |
check_updates-1.6.5.tar.bz2/t/01_functions.t
^
|
@@ -14,7 +14,7 @@
use File::Spec;
-our $VERSION = '1.4.15';
+our $VERSION = '1.6.5';
my $check_updates = File::Spec->catfile(qw(blib script check_updates));
|