[Pkg-nagios-devel] Bug#943888: check_libs: ignores deleted mmaped files

Felix Geyer felix.geyer at credativ.de
Thu Oct 31 12:37:39 GMT 2019

Package: nagios-plugins-contrib
Version: 17.20161211

check_libs doesn't report processes that have mmaped files which have 
been deleted in the meantime.
Importantly that includes libraries that have been upgraded.

To reproduce on buster with systemd (but obviously applies to other 
processes as well):
apt install --reinstall libseccomp2
# /usr/lib/nagios/plugins/check_libs
No upgraded libs linked in running processes

This is caused by on overly aggressive optimization introduced in the 
lsof-speedup patch here:

When reverting that patch to (removing -a +L1)
 > my $LSOF = '/usr/bin/lsof -nPF0';

it correctly reports systemd processes

# /usr/lib/nagios/plugins/check_libs
The following processes have libs linked that were upgraded: root: 
(sd-pam) (544), systemd (1, 543), [...]

Felix Geyer
Tel.:   +49 2166 9901-0
Fax:    +49 2166 9901-100
E-Mail: felix.geyer at credativ.de
PGP:    D1DF 8149 7643 8822 7283 92DC 1004 DA1C FF6D B892

credativ GmbH, HRB Mönchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer

Unser Umgang mit personenbezogenen Daten unterliegt
folgenden Bestimmungen: https://www.credativ.de/datenschutz

More information about the Pkg-nagios-devel mailing list