AMP AMP
AMP
0
AMP

cant locate perl package in my server

Hi.
While checking for the status of apache through nagios service i got dis error. Am using a perl script to check for the apache status. The error as shown below,

# ./check_apachestatus.pl -H (IP_ADDR)

Can' t locate LWP/UserAgent.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_apachestatus.pl line 13.
BEGIN failed--compilation aborted at ./check_apachestatus.pl line 13.
Linux Nagios Perl Add a comment
a sample image
logan
asked May 16 2017

Answer

AMP
0
AMP

There may be any of the below two issues.

One is perl package is not installed or the installed package cant be read by the script. So reinstall & check.

And the other one is that perl script. Check with the line number 13 as shown in error.

If both didn't give any solution, post the script for better assistance.

Add a comment
a sample image
jagannatharumugam
asked May 16 2017
edited Oct 05 2018
Post your Answer