check_running_kernel: Running kernel does not match on-disk kernel image

Bug #1417133 reported by Bruno Bigras
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
nagios-plugins-contrib (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

bbigras@ubuntunew:/usr/lib/nagios/plugins$ sudo ./check_running_kernel
WARNING: Running kernel does not match on-disk kernel image: [Linux version 3.13.0-44-generic (buildd@komainu) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #73-Ubuntu SMP Tue Dec 16 00:23:46 UTC 2014 != Linux version 3.13.0-44-generic (buildd@komainu) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #73-Ubuntu SMP Tue Dec 16 00:23:46 UTC 2014 (Ubuntu 3.13.0-44.73-generic 3.13.11-ckt12)]

On two lines it's :

Linux version 3.13.0-44-generic (buildd@komainu) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #73-Ubuntu SMP Tue Dec 16 00:23:46 UTC 2014
Linux version 3.13.0-44-generic (buildd@komainu) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #73-Ubuntu SMP Tue Dec 16 00:23:46 UTC 2014 (Ubuntu 3.13.0-44.73-generic 3.13.11-ckt12)

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: nagios-plugins-contrib 14.20141104~ubuntu14.04.1
ProcVersionSignature: Ubuntu 3.13.0-44.73-generic 3.13.11-ckt12
Uname: Linux 3.13.0-44-generic i686
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: i386
Date: Mon Feb 2 10:05:49 2015
InstallationDate: Installed on 2014-01-21 (376 days ago)
InstallationMedia: Ubuntu-Server 12.04.3 LTS "Precise Pangolin" - Release i386 (20130820.2)
SourcePackage: nagios-plugins-contrib
UpgradeStatus: Upgraded to trusty on 2014-04-18 (290 days ago)
mtime.conffile..etc.nagios.plugins.check.libs.conf: 2015-02-02T10:01:58.769215

Revision history for this message
Bruno Bigras (brunoqc) wrote :
Revision history for this message
Bruno Bigras (brunoqc) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "check_running_kernel.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nagios-plugins-contrib (Ubuntu):
status: New → Confirmed
Revision history for this message
Andreas Ufert (andreas.ufert) wrote :

The patch attached by brunoqc solves the problem for me.

Revision history for this message
DipSwitch (nick-ds) wrote :

I use the following patch. This also works.

Revision history for this message
Matija Nalis (mnalis) wrote :

brunoqc diff also works for me. Seems easy fix, why not apply it?

Revision history for this message
Matija Nalis (mnalis) wrote :

this patch is improved version of brunoqc patch, allowing also for version names containing "~", like:

Linux version 4.2.0-42-generic (buildd@lgw01-55) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 (Ubuntu 4.2.0-42.49~14.04.1-generic 4.2.8-ckt12)]

Revision history for this message
Jan Wagner (waja) wrote :

Is this still an issue on recent distributions?

Revision history for this message
Bruno Bigras (brunoqc) wrote : Re: [Bug 1417133] Re: check_running_kernel: Running kernel does not match on-disk kernel image

No idea. I don't use this software anymore.

Revision history for this message
Richard (f-richaad-h) wrote :

Just checked it out and it still happens on 20.04:

sudo /usr/lib/nagios/plugins/check_running_kernel
WARNING: Running kernel does not match on-disk kernel image: [Linux version 5.8.0-63-generic (buildd@lgw01-amd64-035) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021 != Linux version 5.8.0-63-generic (buildd@lgw01-amd64-035) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021 (Ubuntu 5.8.0-63.71~20.04.1-generic 5.8.18)

Revision history for this message
Jan Wagner (waja) wrote :

With recent, I was not talking about 20.04, which is NOT recent. See https://launchpad.net/ubuntu/+source/nagios-plugins-contrib for newer releases.

(speaking with my debian maintainers hat on, I'm not feeling responsible for fixing bugs in ubuntu)

Revision history for this message
Jan Wagner (waja) wrote :

FYI: I added the patch from mnalis about the additional tilde in the version string to the debian package

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.