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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rkymtnhigh
Posts: 95
Joined: Tue May 12, 2015 11:53 am

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

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Try running:

Code: Select all

yum -y install perl-Mail-Sendmail
Did this fix the issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rkymtnhigh
Posts: 95
Joined: Tue May 12, 2015 11:53 am

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

Post by rkymtnhigh »

Yes! That seems to have taken care of it. Thanks for pointing me in the right direction!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

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

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked