[Pkg-nagios-devel] Bug#879084: Bug#879084: monitoring-plugins-standard: check_mailq not embed perl safe

Jan Wagner waja at cyconet.org
Sun May 13 09:56:42 BST 2018


Hi Florian,

thanks for bringing this up.

Am 19.10.17 um 09:02 schrieb Florian Lohoff:
> i moved over to a Stretch/Icinga1 installation and check_mailq on the 
> icinga host would not work anymore - complaining about not finding
> utils.pm.
> 
> The cause seems to be that FindBin is incompatible with Embed Perl so
> the include path will not be set correctly.
> 
> Adding a
> 
> 	push @INC, "/usr/lib/nagios/plugins/"
> 
> works - as does disabling embed perl by adding 
> 
> # nagios: -epn
> 
> at the beginning of the file:
> 
> [1508393842.167065] [2320.2] [pid=7885] Raw Command Input: /usr/lib/nagios/plugins/check_mailq -w '$ARG1$' -c '$ARG2$' -M postfix
> [1508393842.167070] [2320.2] [pid=7885] Expanded Command Output: /usr/lib/nagios/plugins/check_mailq -w '$ARG1$' -c '$ARG2$' -M postfix
> [1508393842.167094] [016.1] [pid=7885] Check result output will be written to '/tmp/checkJS5yGx' (fd=5)
> [1508393842.167126] [016.1] [pid=7885] ** Using Embedded Perl interpreter to run service check...
> [1508393842.167173] [016.0] [pid=7885] Embedded Perl failed to compile
> 	/usr/lib/nagios/plugins/check_mailq, compile error **ePN failed to
> 	compile /usr/lib/nagios/plugins/check_mailq: "Can't locate utils.pm
> 	in @INC (you may need to install the utils module) (@INC contains:
> 	/usr/lib/icinga /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1
> 	/usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24
> 	/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24
> 	/usr/local/lib/site_perl) at (eval 29) line 37, BEGIN failed--compilation
> 	aborted at (eval 29) line 44." at /usr/lib/icinga/p1.pl line 159.
> 	 - skipping plugin
> [1508393842.167194] [016.2] [pid=7885] Moving temp check result file '/tmp/checkJS5yGx' to queue file '/var/lib/icinga/spool/checkresults/cPevBhT'...
> 
> 
>  34 use FindBin;
>  35 use lib "$FindBin::Bin";
>  36 use utils qw(%ERRORS &print_revision &support &usage );
>  37 

Could it be that this s related to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863399#10?

Thanks, Jan.
-- 
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M+ V- PS
PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
------END GEEK CODE BLOCK------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-devel/attachments/20180513/da89c805/attachment.sig>


More information about the Pkg-nagios-devel mailing list