六大Nagios常见问题解决办法
来源:互联网 发布:知乎帐号 购买 编辑:程序博客网 时间:2024/06/07 19:07
Nagios常见问题1:
It appears as though you do not have permission to viewinformation for any of the hosts you requested
临时解决:
sed -i 's/use_authentication=1/use_authentication=0/g'/usr/local/nagios/etc/cgi.cfg
(取消了认证 可以浏览主机状态 但是无法在 nagios web端 执行外部命令 )
解决:
登陆 nagios web接口的用户,需要和 /usr/local/nagios/etc/cgi.cfg里面配置的用户匹配,没有可以手动添加,用逗号隔开。
Nagios常见问题2:
Sorry Dave, I can't let you do that... It seems that you havechosen to not use the authentication functionality of the CGIs. Idon't want to be personally responsible for what may happen as aresult of allowing unauthorized users to issue commands toNagios,so you'll have to disable this safeguard if you are reallystubborn and want to invite trouble. Read the section on CGIauthentication in the HTML documentation to learn how you canenable authentication and why you should want to.
原因 : 未开启认证
解决:开启认证可解决问题,编辑文件/usr/local/nagios/etc/cgi.cfg,将 use_authentication 值设成1 (0/1关闭/开启)use_authentication=1,并重启 nagios service nagios restart
Nagios常见问题3:
It appears as though you do not have permission to viewinformation for any of the hosts you requested... If you believethis is an error, check the HTTP server authentication requirementsfor accessing this CGI and check the authorization options in yourCGI configuration file.
原因 : 认证用户不正确
开启认证:认证的用户必须是 cgi.cfg配置文件里有的 默认是 nagiosadmin,如果你新建的其他用户,需要添加进去,多用户用逗号分开
authorized_for_system_information=nagiosadminauthorized_for_configuration_information=nagiosadminauthorized_for_system_commands=nagiosadminauthorized_for_all_services=nagiosadminauthorized_for_all_hosts=nagiosadminauthorized_for_all_service_commands=nagiosadminauthorized_for_all_host_commands=nagiosadmin
如果不是 nagiosadmin 需要到后面添加,例子authorized_for_system_information=nagiosadmin,admin
Nagios常见问题4:
调用外部命令错误,可能权限不够
解决:
临时解决:
chown -R nagios.nagcmd /usr/local/nagios/var/rw
chmod -R 777 /usr/local/nagios/var/rw
为什么说临时解决 ? 因为重启nagios后,权限会还原,还是没权限执行。
解决:
在安装 nagios 时,就要把用户选对,然后再安装。
./configure --with-group=nagios --with-user=nagios--with-command-group=nagcmd --with-gd-lib=/usr/lib--with-gd-inc=/usr/include make all make install make install-initmake install-config make install-commandmode ===
rw agios.cmd 权限是 nagios.nagios,还需要把 web用户 加入到 nagios组里 这样才有权限执行nagios.cmd
Nagios常见问题5:
3D浏览错误,提示下载 statuswrl.cgi
解决: 需安装3D浏览插件
原因是未安装支持vrml 3D浏览的插件,vrml 面向对象的三维造型语言,需要安装 vrml 支持插件才能浏览,CortonaVRML Client 是一个优秀的VRML浏览插件
http://download.pcpop.com/Down/48664.html
http://down2.pcpop.com/softdown/exp/cortvrml.zip
Nagios常见问题6:
查看帮助文档时,无法看到图片
原因是url错误
图片源地址 http://images.enet.com.cn/2011/0902/04/9438374.png
实际地址 /usr/local/nagios/share/docs/images/reachability1.png
解决:配置apache加入别名
Alias /pub "/usr/local/nagios/share/docs"
apachectl restart
重启apache 问题解决
nagios的这些常见问题以及解决办法你学会了吗?相信这是一份很有用的资源,希望这些办法能够帮你解决困扰
- 六大Nagios常见问题解决办法
- nagios常见问题
- Nagios 常见问题
- nagios配置常见问题的总结
- 常见问题解决办法
- fedora 常见问题的解决办法
- 页面常见问题及解决办法
- LumaQQ常见问题与解决办法
- JSF常见问题解决办法
- Hadoop常见问题及解决办法
- SAP常见问题与解决办法
- Hadoop常见问题及解决办法
- SQL Server常见问题解决办法
- Hadoop常见问题及解决办法
- QTP常见问题及解决办法
- Oracle常见问题和解决办法
- Hadoop常见问题及解决办法
- Hadoop常见问题及解决办法
- c++ string 类基本用法样例
- 谁不在清了的飞鸽传书
- struts2 架包、xml配置
- [Objective C]iOS-图片操作集合
- 怎样解决无法初始化Visual Basic环境的问题
- 六大Nagios常见问题解决办法
- 项目经理该干什么?
- 从零开始学WCF(14)WCF安全性概述
- 华为2014校园招聘的机试题目
- JBoss配置
- ios线程监听者模式
- CListView常用用法
- WP8之读取SD卡
- uvc摄像头代码解析2