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
Unable to run a perl script
Re: Unable to run a perl script
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
Thank you it worked.
Re: Unable to run a perl script
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