Home Directory Plugins Operating Systems Linux Running kernel compared to installed kernel version - updated!

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Running kernel compared to installed kernel version - updated!

Rating
4 votes
Favoured:
0
Hits
156593
Files:
FileDescription
check_kernel_statuscheck_kernel_status
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!
Finds the current running kernel version and compares it to the latest installed kernel version. Shows a warning if you need a reboot.
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)
byqoreqyas, July 2, 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
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?
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