手机版
你好,游客 登录 注册
背景:
阅读新闻

Nagios监控故障排除

[日期:2013-09-27] 来源:Linux社区  作者:liuyuan51 [字体:大 中 小]

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故障解决手册。。。。

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款