-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
# /usr/lib/nagios/plugins/check_deb_kernel_version
CRITICAL - Reboot required. Running kernel 4.9.0-6-amd64 is too old, newest kernel on disk is needrestart
let's see where that comes from:
# cat /usr/lib/nagios/plugins/check_deb_kernel_version
[...]
LATEST_KERNEL=$(dpkg-query --search vmlinuz-* | sort -V | tail -1 | cut -d " " -f1 | sed 's/://g' | sed 's/linux-image-//g')
[...]
let's try that query manually:
# dpkg-query --search vmlinuz-*
linux-image-4.9.0-3-amd64: /boot/vmlinuz-4.9.0-3-amd64
needrestart: /usr/lib/needrestart/vmlinuz-get-version
linux-image-4.9.0-6-amd64: /boot/vmlinuz-4.9.0-6-amd64
oh. So let's try to fix that query:
# dpkg-query --search /boot/vmlinuz-*
linux-image-4.9.0-3-amd64: /boot/vmlinuz-4.9.0-3-amd64
linux-image-4.9.0-6-amd64: /boot/vmlinuz-4.9.0-6-amd64
That's better :-)
Metadata
Metadata
Assignees
Labels
No labels