mirror of
https://github.com/bashclub/checkmk-monitoring-plugins.git
synced 2024-12-25 09:30:13 +01:00
Update check_running_kernel
Add Proxmox VE 8.0 support
This commit is contained in:
parent
95e02e5f88
commit
db23af03dd
@ -31,7 +31,11 @@
|
||||
uname=$(uname -r)
|
||||
major_version=${uname:0:3}
|
||||
if [[ "$uname" == *"-pve" ]]; then
|
||||
if [[ "$(lsb_release -cs 2> /dev/null)" == "bookworm" ]]; then
|
||||
filter=proxmox-kernel-$major_version
|
||||
else
|
||||
filter=pve-kernel-$major_version
|
||||
fi
|
||||
elif [[ "$uname" == *"-mvebu" ]]; then
|
||||
latest_kernel=$(dpkg -l | grep -m1 linux-image-current-mvebu | rev | cut -d ' ' -f2 | rev)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user