Page 1 of 1

Unable to run a perl script

Posted: Wed Apr 27, 2016 12:32 pm
by steelwedge
Dear Team,

We are not able run the attached perl script for tomcat monitoring in nagios, we are getting the below error while running it. Please check and update.

/usr/local/nagios/libexec/check_tomcat.pl swtestlnx01.test.steelwedge.com 6185 5 admin admin '/manager/status?XML=true'
Can't locate XML/XPath.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 /usr/local/nagios/libexec/check_tomcat.pl line 27.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_tomcat.pl line 27.

Regards,
Mohan

Re: Unable to run a perl script

Posted: Wed Apr 27, 2016 12:34 pm
by rkennedy
Looks like you're missing a component. Please run the following, and try again -

Code: Select all

yum install perl-libwww-perl perl-XML-XPath

Re: Unable to run a perl script

Posted: Thu Apr 28, 2016 10:20 am
by steelwedge
Thank you it worked.

Re: Unable to run a perl script

Posted: Thu Apr 28, 2016 10:39 am
by tmcdonald
Great to hear! I'll be closing this thread now, but feel free to open another if you need anything in the future!