A Nagios-plugin to check if a machine is running the latest kernel.
It basically compares the output of
uname -r with available
/boot/vmlinuz-* files, so it should be somewhat generic and is supposed to work for most linux based systems. Let me know if it’s not working for you.
The script doesn’t expect any arguments.
(this is just an excerpt of the actual monitoring script – please look into the file check_kernel.sh)
Please consider to take a look at my general setup notes.