Page 1 of 1

Can't locate Mail/Sendmail.pm in @INC

Posted: Mon Feb 08, 2016 2:32 pm
by rkymtnhigh
I have loaded a plugin that will send an email when a condition is met (packet loss in this case).
When I try to run a test, I receive the following error:

Code: Select all

Can't locate Mail/Sendmail.pm in @INC (@INC contains: /usr/local/nagios/perl/lib/Getopt/ /usr/local/nagios/perl/lib/ /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_ping_L2 line 14.
BEGIN failed--compilation aborted at ./check_ping_L2 line 14.
I've done a little googling but can't seem to find a solution. Any help is appreciated!

Thanks!

RMH

Re: Can't locate Mail/Sendmail.pm in @INC

Posted: Mon Feb 08, 2016 3:00 pm
by lmiltchev
Try running:

Code: Select all

yum -y install perl-Mail-Sendmail
Did this fix the issue?

Re: Can't locate Mail/Sendmail.pm in @INC

Posted: Mon Feb 08, 2016 5:23 pm
by rkymtnhigh
Yes! That seems to have taken care of it. Thanks for pointing me in the right direction!

Re: Can't locate Mail/Sendmail.pm in @INC

Posted: Mon Feb 08, 2016 5:40 pm
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.