×

微信扫一扫,快捷登录!

nagios-plugins编译出错时会如何

标签: 暂无标签
来自:网络



错误:


[root[  /u/570656]@localhost[/url] nagios-plugins-1.4.15]# make
...................
make[2]: Entering directory `/usr/local/src/nagios-plugins-1.4.15/perlmods'                     nagios培训
../tools/build_perl_modules -d /usr/local/nagios/perl -m .
Got Test-Simple, with file: Test-Simple-0.70.tar.gz
Got Params-Validate, with file: Params-Validate-0.88.tar.gz                nagios实施
Got Math-Calc-Units, with file: Math-Calc-Units-1.06.tar.gz
Got Class-Accessor, with file: Class-Accessor-0.31.tar.gz
Got Config-Tiny, with file: Config-Tiny-2.10.tar.gz
Got Nagios-Plugin, with file: Nagios-Plugin-0.34.tar.gz
Can't locate ExtUtils/MakeMaker.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 Makefile.PL line 11.
BEGIN failed--compilation aborted at Makefile.PL line 11.

Can't run perl Makefile.PL at ../tools/build_perl_modules line 68.                 监控软件
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/usr/local/src/nagios-plugins-1.4.15/perlmods'                          nagios配置
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-plugins-1.4.15'
make: *** [all] Error 2

解决办法:
yum install perl-devel perl-CPAN -y

    如果在进行编译和安装,还是会报错,需要重新解压,在编译安装,即可。
[root[  /u/570656]@localhost[/url] nagios-plugins-1.4.15]# cd
[root[  /u/570656]@localhost[/url] ~]# rm -rf /usr/local/src/nagios-plugins-1.4.15
[root[  /u/570656]@localhost[/url] ~]# tar -axf nagios-plugins-1.4.15.tar.gz -C /usr/local/src/               开源监控软件
[root[  /u/570656]@localhost[/url] ~]# cd -
/usr/local/src/nagios-plugins-1.4.15
[root[  /u/570656]@localhost[/url] nagios-plugins-1.4.15]# ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl=/usr/bin/openssl --enable-perl-modules
.............
[root[  /u/570656]@localhost[/url] nagios-plugins-1.4.15]# make
.............
[root[  /u/570656]@localhost[/url] nagios-plugins-1.4.15]# make install             nagios安装
.............
make[2]: Leaving directory `/usr/local/src/nagios-plugins-1.4.15'
make[1]: Leaving directory `/usr/local/src/nagios-plugins-1.4.15'



想做Nagios Zabbix,Cacti,iTop各种交流的,可以进入开源监控工具Nagios交流  QQ群号 476809427






上一篇:nagios插件之内存监控笔记
下一篇:在web上配置nagios工具
monicazhang

写了 2297 篇文章,拥有财富 12859,被 21 人关注

您需要登录后才可以回帖 登录 | 立即注册
B Color Link Quote Code Smilies

成为第一个吐槽的人

Powered by IT 运维管理
返回顶部