安装监控IO报错
Can‘t locate Regexp/Common.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_iostat line 25.
BEGIN failed--compilation aborted at ./check_iostat line 25.
解决办法:
yum install -y perl-Params-Validate perl-Math-Calc-Units perl-Regexp-Commonperl-Class-Accessor perl-Config-Tiny perl-Nagios-Plugin.noarch
然后:
Can‘t locate Regexp/Common.pm 报什么错就安装什么包
wget http://search.cpan.org/CPAN/authors/id/T/TO/TONVOON/Nagios-Plugin-0.34.tar.gz
wget http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-0.95.tar.gz
wget http://search.cpan.org/CPAN/authors/id/S/SF/SFINK/Math-Calc-Units-1.07.tar.gz
wget wget http://search.cpan.org/CPAN/authors/id/A/AB/ABIGAIL/Regexp-Common-2013031301.tar.gz
wget http://mirrors.xmu.edu.cn/CPAN/authors/id/K/KA/KASEI/Class-Accessor-0.31.tar.gz
wget http://mirrors.xmu.edu.cn/CPAN/authors/id/A/AD/ADAMK/Config-Tiny-2.12.tar.gz
本文出自 “xieping_linux” 博客,请务必保留此出处http://xieping.blog.51cto.com/3715452/1573420
原文地址:http://xieping.blog.51cto.com/3715452/1573420