加入收藏 | 设为首页 | 会员中心 | 我要投稿 应用网_丽江站长网 (http://www.0888zz.com/)- 科技、建站、数据工具、云上网络、机器学习!
当前位置: 首页 > 服务器 > 安全 > 正文

六大Nagios常见问题解决方式

发布时间:2022-04-26 10:44:14 所属栏目:安全 来源:互联网
导读:六大Nagios常见问题解决方式: Nagios常见问题1: It appears as though you do not have permission to view information for any of the hosts you requested 临时解决: sed -i s/use_authentication=1/use_authentication=0/g /usr/local/nagios/etc/cgi.c
        六大Nagios常见问题解决方式:

         Nagios常见问题1:
 
        It appears as though you do not have permission to view information 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 have chosen to not use the authentication functionality of the CGIs.  
 
I don't want to be personally responsible for what may happen as a result of allowing unauthorized users to issue commands to Nagios,so you'll have to disable this safeguard if you are really stubborn and want to invite trouble.  
 
原因 : 未开启认证
 
解决:开启认证可解决问题,编辑文件 /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 view information for any of the hosts you requested...  
 
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI  
 
and check the authorization options in your CGI configuration file.
 
Nagios常见问题4:
 
调用外部命令错误,可能权限不够
 
解决:
 
临时解决:
 
chown -R nagios.nagcmd /usr/local/nagios/var/rw
 
chmod -R 777 /usr/local/nagios/var/rw
 
为什么说临时解决 ? 因为重启nagios后,权限会还原,还是没权限执行。
 
解决:
 
在安装 nagios 时,就要把用户选对,然后再安装。
 
Nagios常见问题5:
 
3D浏览错误,提示下载 statuswrl.cgi
 
解决: 需安装3D浏览插件
 
原因是未安装支持vrml 3D浏览的插件,vrml 面向对象的三维造型语言,需要安装 vrml 支持插件才能浏览,Cortona VRML Client 是一个优秀的VRML浏览插件
 
Nagios常见问题6:
 
查看帮助文档时,无法看到图片
 
原因是url错误
 
解决:配置apache加入别名
 
Alias /pub "/usr/local/nagios/share/docs"
 
nagios的这些常见问题以及解决办法你学会了吗?相信这是一份很有用的资源,希望这些办法能够帮你解决困扰。

(编辑:应用网_丽江站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读