nagios错误解决

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nagios错误解决相关的知识,希望对你有一定的参考价值。

错误configure: error: Please fix the library issues listed above and tryagain.

解决方法:yum install -y pango*

 

 

 

 

错误

Can‘t locate ExtUtils/MakeMaker.pm in @INC(@INC contains: /usr/local/lib/perl5                                                                                        /usr/local/share/perl5 /usr/lib/perl5/vendor_perl/usr/share/perl5/vendor_perl /                                                                                       usr/lib/perl5/usr/share/perl5 .) at Makefile.PL line 1.

BEGIN failed--compilation aborted atMakefile.PL line 1.

make[3]: *** [perl-piped/Makefile] 错误 2

make[3]: Leaving directory`/usr/local/src/rrdtool-1.4.9/bindings‘

make[2]: *** [all-recursive] 错误 1

make[2]: Leaving directory`/usr/local/src/rrdtool-1.4.9/bindings‘

make[1]: *** [all-recursive] 错误 1

make[1]: Leaving directory`/usr/local/src/rrdtool-1.4.9‘

make: *** [all] 错误 2

[[email protected] rrdtool-1.4.9]# echo

解决方法:yum install –y perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

yum -y installperl-ExtUtils-MakeMaker



监控出现

It appears as though you do not havepermission to view information for any of the services you requested...

If you believe this is an error, check theHTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.

 

该项提高安全性,是用来验证管理账户,如果后台账户不是nagiosadmin,就会报错,可以修改cgi文件,把里面的nagiosadmin改成你现在的用户名,或者改下面1改为0

authorized_for_system_information=nagiosadmin

authorized_for_configuration_information=nagiosadmin

authorized_for_system_commands=nagiosadmin

authorized_for_all_services=nagiosadmin

authorized_for_all_hosts=nagiosadmin

authorized_for_all_service_commands=nagiosadmin

authorized_for_all_host_commands=nagiosadmin

 

 

 

解决办法:

vim /usr/local/nagios/etc/cgi.cfg

 

use_authentication=1改为use_authentication=0

 

 

 

make install出现

/usr/bin/install: invalid group`nagios-plugins.spec‘

make[2]: *** [install-libexecPROGRAMS]Error 1

make[2]: Leaving directory `/root/nagios-plugins-2.1.2/plugins‘

make[1]: *** [install-am] Error 2

make[1]: Leaving directory`/root/nagios-plugins-2.1.2/plugins‘

 

 

./configure 时复制错了


本文出自 “11736718” 博客,请务必保留此出处http://11746718.blog.51cto.com/11736718/1876236

以上是关于nagios错误解决的主要内容,如果未能解决你的问题,请参考以下文章

安装nagios-plugins时候报错:./stdio.h:456:1: 错误:‘gets’未声明(不在函数内)

当nagios监测http时,会报错“ HTTP WARNING: HTTP/1.1 403Forbidden ~~~“ 解决方案

CentOS 7 下nagios搭建记录

MYSQL主从同步故障一例及解决过程

安装nagios出现的错误

Nagios/NRPE 给出“没有从插件返回的输出”错误