Error in perl script execution

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yangzhiyao2653
Posts: 27
Joined: Fri May 18, 2018 1:15 am

Error in perl script execution

Post by yangzhiyao2653 »

I'm trying to monitor a server with the check_ipmi_sensor script downloaded from https://exchange.nagios.org/directory/P ... in/details,
I have correctly configured ipmi in the server remote, I have nagiosxi 5.4.12.
the script gives me the following error =>


./check_ipmi_sensor
Can't locate IPC/Run.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_ipmi_sensor line 35.
BEGIN failed--compilation aborted at ./check_ipmi_sensor line 35.

line 35 of the script refers to => use IPC :: Run qw (run); #interact with processes

What perl module do I need to install in order for the script to work?

Thank you
yangzhiyao2653
Posts: 27
Joined: Fri May 18, 2018 1:15 am

Re: Error in perl script execution

Post by yangzhiyao2653 »

yum install perl-CPAN -y
yum -y install *YAML*
cpan IPC::Run
OK
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error in perl script execution

Post by scottwilkerson »

Code: Select all

yum install 'perl(IPC::Run)' -y
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked