Page 1 of 1

Error in perl script execution

Posted: Fri Jul 27, 2018 10:34 pm
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

Re: Error in perl script execution

Posted: Fri Jul 27, 2018 10:39 pm
by yangzhiyao2653
yum install perl-CPAN -y
yum -y install *YAML*
cpan IPC::Run
OK

Re: Error in perl script execution

Posted: Mon Jul 30, 2018 8:08 am
by scottwilkerson

Code: Select all

yum install 'perl(IPC::Run)' -y