Unable to run a perl script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
steelwedge
Posts: 69
Joined: Fri Apr 24, 2015 4:58 am

Unable to run a perl script

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to run a perl script

Post 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
Former Nagios Employee
steelwedge
Posts: 69
Joined: Fri Apr 24, 2015 4:58 am

Re: Unable to run a perl script

Post by steelwedge »

Thank you it worked.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Unable to run a perl script

Post 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!
Former Nagios employee
Locked