Hi Fedor,

thanks for bringing this to our attention.

Am 26.05.2017 um 12:29 schrieb Fedor Piecka:
> Running check_mailq causes an error:
> 
> $ /usr/lib/nagios/plugins/check_mailq -w 5 -c 15 -M postfix
> Can't locate FindBin.pm in @INC (you may need to install the FindBin
> module) (@INC contains: /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2
> /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20
> /usr/local/lib/site_perl .) at /usr/lib/nagios/plugins/check_mailq line 34.
> BEGIN failed--compilation aborted at /usr/lib/nagios/plugins/check_mailq
> line 34.
> 
> After issuing "apt-get install libfindbin-libs-perl", the command works:
> 
> $ /usr/lib/nagios/plugins/check_mailq -w 5 -c 15 -M postfix
> OK: postfix mailq reports queue is empty|unsent=0;5;15;0

I guess you are not installing recommended packages? As in
/usr/share/doc/monitoring-plugins-standard/README.Debian.plugins stated
we avoid pulling all the depedencies as this was reported as an issue
many times in the past.
So if your are not switching off installing recommended packages
intentionally, this package should be installed (perl-modules).

With kind regards, Jan.
-- 
Never write mail to <[email protected]>, 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------

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to