# 常见错误

1. error: Cannot find ssl headers ||  checking for SSL headers..configure:errorCannot find ssl headers 

 

  原因是缺少:openssl-devel包,

  解决办法:yum -y install openssl*

 

2.make[2]: *** [check_http.o]Error 1

  make[2]:Leaving directory '/root/tools/nagios-plugin-1.4.16/plugins'

  make[1]:*** all-rectory '/root/tools/nagios-plugins-1.4.16'

  make[1]: **[all]Error2 

  

 

  原因 有可能缺少了perl-devel     

   解决办法: yum install perl-devel -y 后删掉解压包,重头编译   yum install mysql* -y 

 

 3. It appears as though you do not have permission to view information for any of the server you requested 

 

 

  原因: 用户的权限   nagiosadmin

查看cgi.cfg 里面包含了权限信息,看到authorized_for_all_services =xxx

authorized_for_all_hosts =xxx 

权限人  

4.Connection refused by host

 

  原因: 1.没有开服务

    2.没有关防火墙或者改防火墙

    3.没有配置nrpe

   

5.NRPEUable to read output 

   

         客户端的插件获取没有拿取到数据

     

排查错误步骤