diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-08-21 11:15:15 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-08-21 11:15:15 +0200 |
commit | a4827213fdacc33926702697f1a37367be8ee5ee (patch) | |
tree | 93bc0a209b5a78f17d5a325979113382470301e6 | |
parent | b04b2185e2010591771376caa66db395e9146262 (diff) | |
download | sitesummary-a4827213fdacc33926702697f1a37367be8ee5ee.tar.gz sitesummary-a4827213fdacc33926702697f1a37367be8ee5ee.tar.bz2 sitesummary-a4827213fdacc33926702697f1a37367be8ee5ee.tar.xz |
Adjust nagios-plugins/check_kernel_status to avoid perl warning on Debian and Ubuntu.
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | nagios-plugins/check_kernel_status | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 715c9d8..cd5395a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,8 @@ sitesummary (0.1.11) UNRELEASED; urgency=low * Remove obsolete code from sitesummary postinst, used when migrating apache config in sitesummary version 0.0.7. * Add Alexander Alemayhu as uploader. + * Adjust nagios-plugins/check_kernel_status to avoid perl warning on + Debian and Ubuntu. -- Petter Reinholdtsen <pere@debian.org> Thu, 21 Aug 2014 10:21:24 +0200 diff --git a/nagios-plugins/check_kernel_status b/nagios-plugins/check_kernel_status index a1a60b8..cd2547e 100755 --- a/nagios-plugins/check_kernel_status +++ b/nagios-plugins/check_kernel_status @@ -25,7 +25,7 @@ if ( -e '/proc/version_signature' ) $sig = `cat /proc/version_signature`; if ( $sig =~ /.* (\d+)\.(\d+)\.(\d+)-(\d+)\.(\d+)-[generic|server]/ ) { - @running_version = ($1, $2, $3, $4, $5); + @running_version = ($1, $2, $3, $4, $5, 0); } else { @@ -47,7 +47,7 @@ elsif ( -e '/proc/version' ) ) { - @running_version = ($1, $2, $3, $4, $5, $6); + @running_version = ($1, $2, $3, $4, $5 || 0, $6 || 0); } else { |