Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Running kernel compared to installed kernel version - updated!
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!
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.
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)
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
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
byfabricat, May 22, 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?
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?
bylelutin, May 17, 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
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