[Pkg-nagios-devel] Bug#760373: check_libs filename parsing error on OpenVZ guests

Felix Geyer felix.geyer at credativ.de
Wed Sep 3 11:41:58 UTC 2014


Package: nagios-plugins-contrib
Version: 11.20140704
Tags: patch

Hi,

I noticed that check_libs sometimes parses files incorrectly
inside an OpenVZ container (wheezy host and guest, proxmox ve
2.6.32 kernel):

# /usr/lib/nagios/plugins/check_libs --verbose
Running /usr/bin/lsof -F0 -n
adding bash(28081) because of [ (deleted)/tmp/tmpfXKFYTG]:
f1aul tREGG0x8002;0x0D0x6ds218i9441399k0n (deleted)/tmp/tmpfXKFYTG
adding bash(28081) because of [ (deleted)/tmp/tmpfXKFYTG]:
f2aul tREGG0x8002;0x0D0x6ds218i9441399k0n (deleted)/tmp/tmpfXKFYTG
adding puppet(28244) because of [ (deleted)/tmp/tmpfXKFYTG]:
f1aul tREGG0x8002;0x0D0x6ds218i9441399k0n (deleted)/tmp/tmpfXKFYTG
adding puppet(28244) because of [ (deleted)/tmp/tmpfXKFYTG]:
f2aul tREGG0x8002;0x0D0x6ds218i9441399k0n (deleted)/tmp/tmpfXKFYTG
The following processes have libs linked that were upgraded: root: bash
(28081), puppet (28244)

So in some cases there is a space in front of "(deleted)".
Attached is a patch that fixes this.

Regards,
Felix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_libs_parse_deleted.diff
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20140903/58a93ea9/attachment.bin>


More information about the Pkg-nagios-devel mailing list