Linux

Running kernel compared to installed kernel version – updated!

Description:

Finds the current running kernel version and compares it to the latest installed kernel version. Shows a warning if you need a reboot.

Current Version

Last Release Date

June 18, 2009

Compatible With


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
This script will find the running kernel version and compare it to the latest installed version (through apt!) Tested on Debian Etch, Debian Lenny and Ubuntu Server 8.04 LTS. The script returns a warning when the installed version is higher than the running version, telling you that there is a reboot required. We use it to track system maintenance status, as not all systems can be rebooted at request. Update 2009-05-05: Added support for Debian Lenny.
Reviews (3) Add a Review
update
by qoreqyas, July 31, 2013
i updated this script to work with debian squeeze
i also changed the behaviour how the upstream version is determined (from hardcoded 2.6.X to check target of /vmlinuz)

since i dont have ubuntu and can not test it i threw out the ubuntu stuff
https://bitbucket.org/qoreqyas/check_kernel_status
Helpful? Yes  No 
new kernel, old problem
by fabricat, May 31, 2012
Seems like you were wrong :-(
The latest Ubuntu 12.04 is based on kernel 3.2... and it still needs the reboot after upgrade.

Can you please support also the new kernel versions?
Helpful? Yes  No 
exactly what I was looking for!
by lelutin, May 31, 2011
Wow, that does exactly what we plotted how we would monitor the kernel version. Just as I needed this.

I've modified the script so that it works with recent versions of Debian Lenny and Squeeze (version schema seems to have changed with time)

https://github.com/lelutin/nagios-plugins/blob/master/check_kernel_status
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (4)
Favorites
0
Views
156,499