Package: nagios-plugins-contrib Version: 21.20170222 Severity: normal Tags: patch
Dear Maintainer, The /boot directory on /boot includes /vmlinuz.old - a link to the previously installed kernel. This is detected by check_running_kernel, which incorrectly detects it as the current installed kernel. Excluding it from the candidates for the on disk kernel fixes the issue. John -- System Information: Debian Release: 9.1 APT prefers stable APT policy: (500, 'stable') Architecture: armel (armv5tel) Kernel: Linux 4.9.0-4-marvell Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) nagios-plugins-contrib depends on no packages. Versions of packages nagios-plugins-contrib recommends: ii bind9-host 1:9.10.3.dfsg.P4-12.3+deb9u3 pn binutils <none> pn freeipmi-tools <none> ii libc6 2.24-11+deb9u1 pn libdata-validate-domain-perl <none> pn libdata-validate-ip-perl <none> ii libdate-manip-perl 6.57-1 pn libdbd-mysql-perl <none> ii libio-socket-ssl-perl 2.044-1 pn libipc-run-perl <none> ii liblocale-gettext-perl 1.07-3+b1 pn liblwp-useragent-determined-perl <none> pn libmail-imapclient-perl <none> pn libmemcached11 <none> pn libmemcachedutil2 <none> pn libmonitoring-plugin-perl | libnagios-plugin- <none> pn libnet-cups-perl <none> pn libnet-dns-perl <none> pn libnet-dns-sec-perl <none> ii libnet-smtp-ssl-perl 1.04-1 pn libnet-smtp-tls-perl <none> pn libnet-smtpauth-perl <none> pn libnet-snmp-perl <none> ii libnet-ssleay-perl 1.80-1 pn libreadonly-perl <none> pn libredis-perl <none> ii libsocket-perl 2.024-1+b1 ii libtimedate-perl 2.3000-2 pn libvarnishapi1 <none> pn libwebinject-perl <none> ii libxml-simple-perl 2.22-1 pn libyaml-syck-perl <none> ii lsof 4.89+dfsg-0.1 ii nagios-plugins-basic 2.2-3 ii openssl 1.1.0f-3+deb9u1 ii perl 5.24.1-3+deb9u2 ii perl-base [libsocket-perl] 5.24.1-3+deb9u2 ii python 2.7.13-2 pn python-pymongo <none> pn ruby | ruby-interpreter <none> pn snmp <none> ii whois 5.2.17~deb9u1 Versions of packages nagios-plugins-contrib suggests: pn backuppc <none> pn cciss-vol-status <none> pn expect <none> pn libsys-virt-perl <none> pn moreutils <none> pn mpt-status <none> pn nagios-plugin-check-multi <none> pn percona-toolkit <none> pn perl-doc <none> ii python2.7 2.7.13-2 pn smstools <none> -- no debconf information
--- check_running_kernel.orig 2017-11-29 14:19:59.898242225 +0000 +++ check_running_kernel 2017-11-29 14:21:55.926230409 +0000 @@ -188,7 +188,8 @@ $([ -f "/boot/vmlinuz-$(uname -r)" ] && find /boot/ -name 'vmlinuz*' -and -name "vmlinuz-$(uname -r)" -or -name 'vmlinuz*' -and -newer "/boot/vmlinuz-$(uname -r)" | sort) \ $([ -f "/boot/kfreebsd-$(uname -r).gz" ] && find /boot/ -name 'kfreebsd*' -and -name "kfreebsd-$(uname -r).gz" -or -name 'kfreebsd*' -and -newer "/boot/kfreebsd-$(uname -r).gz" | sort); do - if [ -e "$on_disk" ]; then + + if [ -e "$on_disk" ] && [ "$on_disk" != "/boot/vmlinuz.old" ]; then if [ -z "$STRINGS" ]; then echo "UNKNOWN: 'strings' command missing, perhaps install binutils or busybox?" exit $UNKNOWN