3、错误:
Error: Service check command'check_nrpe' specified in service 'check_total_procs' for host '192.168.15.183'not defined anywhere!
没有定义nagios的命令模板
编辑commands.cfg 添加即可
例:define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
4、安装nrpe,编译的时候提示以下信息checkingfor SSL headers... configure: error: Cannot find ssl headers原因是缺少openssl-devel包,yum -yinstall openssl-devel 问题解决!
5、It appears as thoughyou do not have permission to view information for any of the hosts yourequested...
If you believe this is an error, check the HTTP serverauthentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
解决:
第一种:
配置cgi.cfg
78 use_authentication=1默认值为1,改为0,即取消账号验证
第二种:同样也是配置cgi.cfg中的参数,
在末行模式下执行 %s/nagiosadmin/username/g
此username是你在htpasswd生成的自定义验证用户
开启认证认证的用户必须是 cgi.cfg 配置文件里有的默认是 nagiosadmin
如果你新建的其他用户需要添加进去多用户用逗号分开
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
如果不是 nagiosadmin 需要到后面添加
例子 authorized_for_system_information=nagiosadmin,username
愿积极跟贴,共建nagios故障解决手册。。。。
