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

[root@rs2 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 時複製錯了


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章