[Pkg-nagios-devel] Bug#879084: monitoring-plugins-standard: check_mailq not embed perl safe
Florian Lohoff
f at zz.de
Thu Oct 19 07:02:31 UTC 2017
Package: monitoring-plugins-standard
Version: 2.2-3
Severity: normal
Hi,
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
--
Florian Lohoff f at zz.de
UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20171019/4231e679/attachment.sig>
More information about the Pkg-nagios-devel
mailing list