六大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.
- Read the section on CGI authentication in the HTML documentation to learn how you can enable 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 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.
原因 : 认证用户不正确
开启认证:认证的用户必须是 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,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-init
- make install-config
- make install-commandmode
- ===
rw agios.cmd 权限是 nagios.nagios,还需要把 web用户 加入到 nagios组里 这样才有权限执行 nagios.cmd
Nagios常见问题5:
3D浏览错误,提示下载 statuswrl.cgi
解决: 需安装3D浏览插件
原因是未安装支持vrml 3D浏览的插件,vrml 面向对象的三维造型语言,需要安装 vrml 支持插件才能浏览,Cortona VRML Client 是一个优秀的VRML浏览插件
http://download.pcpop.com/Down/48664.html
http://down2.pcpop.com/softdown/exp/cortvrml.zip
Nagios常见问题6:
查看帮助文档时,无法看到图片
原因是url错误
图片源地址 http://nagios_ip/pub/images/reachability1.png
实际地址 /usr/local/nagios/share/docs/images/reachability1.png
解决:配置apache加入别名
Alias /pub "/usr/local/nagios/share/docs"
apachectl restart
重启apache 问题解决
nagios的这些常见问题以及解决办法你学会了吗?相信这是一份很有用的资源,希望这些办法能够帮你解决困扰。
六大Nagios常见问题解决办法的更多相关文章
- C# .Net Framework4.5中配置和使用managedCUDA及常见问题解决办法
主要参考英文帖子.我就不翻译了哈.很容易懂的. 先说明我的运行平台: 1.IDE:Visual Studio 2012 C# .Net Framework4.5,使用默认安装路径: 2.显卡类型:NV ...
- IpmiTool常见问题解决办法
IpmiTool常见问题解决办法 http://blog.csdn.net/c9h8o4/article/details/17138029 关于IPMI的几个问题 http://blog.csdn.n ...
- VNC常用操作及常见问题解决办法汇总
VNC登录用户缺省是root,但在安装oracle时必须用oracle用户的身份登录,下面我们就以oracle为例说明如何配置VNC,从而可以使用不同的用户登录到主机.步骤描述如下: 步骤一:修 ...
- eclipse开发android程序常见问题解决办法
1:R.java不自动更新或不见,gen文件夹里没生成文件. 解决办法: 这个一般是xml文件中有错误,如有英文大写,属性值错误等,解决了就会好. 如果错都排除了还没有生成或更新,那么可以点击proj ...
- IntelliJ IDEA常见问题解决办法汇总
(1)SVN相关的操作: 启用:方法1:VCS菜单下Enable Version Control Integration,点击之后选择相应的版本控制工具方法2:Setting中Version Cont ...
- Spring常见问题解决办法汇总
解决The prefix 'context' for element 'context:component-scan' is not bound<beans xmlns="http:/ ...
- 堡垒机-teleport的安装以及常见问题解决办法
teleport是一款简单易用的堡垒机系统,运用在企业对windows.linux服务器的安全使用管理以及审计. 官网网址:http://teleport.eomsoft.net/ github地址: ...
- CentOS 7 PHP-redis扩展安装,浏览器不显示数据及redis无法储存数据常见问题解决办法
首先使用php -m 可以查看到自己安装了那些扩展. 1.使用wget下载redis压缩包 wget https://github.com/phpredis/phpredis/archive/deve ...
- Vue常见问题解决办法(一)ESLint检查报错
vue.js报错“Do not use 'new' for side effects“(main.js里)解决办法 ESLint工具检查代码质量,main.js里的原代码是这样的: new Vue({ ...
随机推荐
- 学习记录 彻底搞清 C#中a++与++a的区别
首先 a++和++a 的定义:看个例子A: a=5; b=++a; // 相当于a=a+1;b=a; 结果是a=6,b=6B: a=5; b=a++; // 相当于b=a;a=a+1; 结果是a=6, ...
- ASP.NET MVC 开源项目学习之ProDinner (一)
首先在github上面将ProDinner项目通过 Git Bash 克隆到本地,接下来我们开始分析这个项目吧~ 系统采用.Net 4.5, Asp.net Mvc 5,VS2012,Sql serv ...
- Android各个文件夹对应的分辨率?
- 使用throws抛出异常
声明抛出异常实在一个方法声明的throws子句中指明的.throws子句方法的基本形式如下.方法 throws 异常列表{ }throws子句中可以指明多个异常,说明该方法不对这些异常进行处理,而是抛 ...
- sql server 2008 R2 配置开启远程访问
- ansible 访问内网服务器
ssh https://medium.com/@paulskarseth/ansible-bastion-host-proxycommand-e6946c945d30#.rauzlfv0z http: ...
- js获得浏览器的尺寸
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...
- java 命令行操作
打包命令 例如:将testproject下的文件打包成test.war jar cvf test.war ./testproject
- (笔记)angular 包含关系的controller参数传递
- javaSE第十三天
第十三天 76 1. StringBuffer(掌握) 76 (1)说明: 77 (2)StringBuffer的构造方法 77 (3)StringBuffer的常见功能 ...