Unable to run a perl script
Posted: Wed Apr 27, 2016 12:32 pm
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
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