Re: running vs. installed kernel
Peter Palfrader schrieb:
On Mon, 05 Oct 2009, dann frazier wrote:
cat /proc/version is nice because it is the running kernel, and
includes the package version.
Also, maybe
http://git.debian.org/?p=mirror/dsa-nagios.git;a=blob;f=dsa-nagios-checks/checks/dsa-check-running-kernel;hb=HEAD
might be useful for some.
There is also a checkon nagios exchange
http://exchange.nagios.org/directory/Plugins/Uncategorized/Operating-Systems/Linux/Running-kernel-compared-to-installed-kernel-version-%252D-updated!/details
It deals different versions of Debian and Ubuntu too.
By the way, on ubuntu systems this information is stored in
/proc/version_signature:
root@web1:~/bin# cat /proc/version
Linux version 2.6.28-15-server (buildd@yellow) (gcc version 4.3.3
(Ubuntu 4.3.3-5ubuntu4) ) #52-Ubuntu SMP Wed Sep 9 11:34:09 UTC 2009
root@web1:~/bin# cat /proc/version_signature
Ubuntu 2.6.28-15.52-server
Cheers,
Gunni
--
Guntram Trebs
freier Programmierer und Administrator
gt@trebs.net
+49 (30) 42 80 61 55
+49 (179) 519 82 39 (vorläufig)
+49 (151) 55 85 85 55
Reply to: