Hello,
thanks in advance!
I'm trying to use the plugins check_email_age.pl, check_pop3_account.pl. However, they throw error. fyi, I'm not a perl developer.
when I execute as test the plugins I get the following:
./check_email_age.pl -H 3.159.212.217 -u r00675859 -p GE210User -P pop3s
Can't locate Mail/POP3Client.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_email_age.pl line 87.
BEGIN failed--compilation aborted at ./check_email_age.pl line 87.
line 87
use Mail::POP3Client;
yum install perl-Mail-POP3Client
Loaded plugins: changelog, fastestmirror, fs-snapshot, security, ulninfo, verify
Setting up Install Process
Loading mirror speeds from cached hostfile
* epel: fedora-epel.mirror.lstn.net
* epel_6_x86_64: tnlp010001.tsg.ge.com
* ol6_x86_64_UEKR3_latest: tnlp010001.tsg.ge.com
* ol6_x86_64_UEKR4: tnlp010001.tsg.ge.com
* ol6_x86_64_UEK_latest: tnlp010001.tsg.ge.com
* ol6_x86_64_addons: tnlp010001.tsg.ge.com
* ol6_x86_64_latest: tnlp010001.tsg.ge.com
Resolving Dependencies
--> Running transaction check
---> Package perl-Mail-POP3Client.noarch 0:2.19-5.el7 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Mail-POP3Client-2.19-5.el7.noarch
--> Finished Dependency Resolution
Error: Package: perl-Mail-POP3Client-2.19-5.el7.noarch (epel)
Requires: perl(:MODULE_COMPAT_5.16.3)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I've tried locating and installing the depency package but I can't locate a good one
Where can I find the Dependency: perl(:MODULE_COMPAT_5.16.3) for package: perl-Mail-POP3Client-2.19-5.el7.noarch ??? to use these plugins?
I found it. Mail-POP3Client-2.19.tar.gz
for RedHat it can be found at - https://rpmfind.net/linux/RPM/epel/7/x8 ... oarch.html
I put the Mail-POP3Client-2.19/lib/Mail/POP3Client.pm in the path seen by the scripts INC, and it works as expected.
check_email_age.pl, check_pop3_account.pl throws error
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_email_age.pl, check_pop3_account.pl throws error
glad to see you have it sorted.gmills wrote:I found it. Mail-POP3Client-2.19.tar.gz
for RedHat it can be found at - https://rpmfind.net/linux/RPM/epel/7/x8 ... oarch.html
I put the Mail-POP3Client-2.19/lib/Mail/POP3Client.pm in the path seen by the scripts INC, and it works as expected.
One thing I noticed in your output when trying to install it is that you have a repo for epel AND epel_6_x86_64
and the paching that was trying to be installed was an el7 package, which leads me to believe the epel repo you have installed is for version 7 not 6.
I would check it out in /etc/yum.repos.d/epel.repo and if it is for the wrong OS version deactivate it