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:

  1. Sorry Dave, I can't let you do that...
  2. It seems that you have chosen to not use the authentication functionality of the CGIs.
  3. 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.
  4. 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:

  1. It appears as though you do not have permission to view information for any of the hosts you requested...
  2. If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
  3. and check the authorization options in your CGI configuration file.

原因 : 认证用户不正确

开启认证:认证的用户必须是 cgi.cfg 配置文件里有的 默认是 nagiosadmin,如果你新建的其他用户,需要添加进去,多用户用逗号分开

  1. authorized_for_system_information=nagiosadmin
  2. authorized_for_configuration_information=nagiosadmin
  3. authorized_for_system_commands=nagiosadmin
  4. authorized_for_all_services=nagiosadmin
  5. authorized_for_all_hosts=nagiosadmin
  6. authorized_for_all_service_commands=nagiosadmin
  7. 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 时,就要把用户选对,然后再安装。

  1. ./configure --with-group=nagios --with-user=nagios --with-command-group=nagcmd --with-gd-lib=/usr/lib --with-gd-inc=/usr/include
  2. make all
  3. make install
  4. make install-init
  5. make install-config
  6. make install-commandmode
  7. ===

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常见问题解决办法的更多相关文章

  1. C# .Net Framework4.5中配置和使用managedCUDA及常见问题解决办法

    主要参考英文帖子.我就不翻译了哈.很容易懂的. 先说明我的运行平台: 1.IDE:Visual Studio 2012 C# .Net Framework4.5,使用默认安装路径: 2.显卡类型:NV ...

  2. IpmiTool常见问题解决办法

    IpmiTool常见问题解决办法 http://blog.csdn.net/c9h8o4/article/details/17138029 关于IPMI的几个问题 http://blog.csdn.n ...

  3. VNC常用操作及常见问题解决办法汇总

    VNC登录用户缺省是root,但在安装oracle时必须用oracle用户的身份登录,下面我们就以oracle为例说明如何配置VNC,从而可以使用不同的用户登录到主机.步骤描述如下:    步骤一:修 ...

  4. eclipse开发android程序常见问题解决办法

    1:R.java不自动更新或不见,gen文件夹里没生成文件. 解决办法: 这个一般是xml文件中有错误,如有英文大写,属性值错误等,解决了就会好. 如果错都排除了还没有生成或更新,那么可以点击proj ...

  5. IntelliJ IDEA常见问题解决办法汇总

    (1)SVN相关的操作: 启用:方法1:VCS菜单下Enable Version Control Integration,点击之后选择相应的版本控制工具方法2:Setting中Version Cont ...

  6. Spring常见问题解决办法汇总

    解决The prefix 'context' for element 'context:component-scan' is not bound<beans xmlns="http:/ ...

  7. 堡垒机-teleport的安装以及常见问题解决办法

    teleport是一款简单易用的堡垒机系统,运用在企业对windows.linux服务器的安全使用管理以及审计. 官网网址:http://teleport.eomsoft.net/ github地址: ...

  8. CentOS 7 PHP-redis扩展安装,浏览器不显示数据及redis无法储存数据常见问题解决办法

    首先使用php -m 可以查看到自己安装了那些扩展. 1.使用wget下载redis压缩包 wget https://github.com/phpredis/phpredis/archive/deve ...

  9. Vue常见问题解决办法(一)ESLint检查报错

    vue.js报错“Do not use 'new' for side effects“(main.js里)解决办法 ESLint工具检查代码质量,main.js里的原代码是这样的: new Vue({ ...

随机推荐

  1. Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0

    在安装pcre-8.13.tar.gz时候出了错,说是缺少libpcre.so.0 下面是解决方法.真不容易哦,一个问题来没解决,新问题就出来了.一环扣一环,会搞死去.. errorgrep: err ...

  2. Ajax-(get/post/jQuery方式请求)

    < !DOCTYPE html > < html xmlns = "http://www.w3.org/1999/xhtml" > < head &g ...

  3. 用代码给TABLE 添加字段,设置属性并编译

    AOTTableFieldList AOTTableFieldList ,TableFieldNode; TableName tableName = "SML_InventTableExt& ...

  4. AX Query

    AX 用代码方式调用静态Query(AOT\Queries节点下面的Query)的方法 static void AXD_CallQuery_SalesInfo(Args _args) { SysQue ...

  5. Jmeter笔记2:参数化(五种方法)

    案例:邮箱登录操作,参数化登录的用户名 方法一.依赖Jmeter自带的函数助手 选项-->函数助手对话框,即可打开函数助手弹窗 (1)比如使用函数_Random 输入最小值.最大值,点击下方的[ ...

  6. poj1035 Spell checker

    这题目比较简单,把思路搞清楚就可以啦. #include <stdio.h> #include <string.h> +][]; int init(){ ; while(~sc ...

  7. 配置DNS域名解析服务器

    bind这个DNS域名解析服务器解析好后,执行下面的语句实现开启服务 named -c named.conf & -c指配置脚本named.conf的文件地址 named.conf主要有下面几 ...

  8. 使用Spring开发第一个HelloWorld应用

    http://www.importnew.com/13246.html 让我们用Spring来写第一个应用程序吧. 完成这一章要求: 熟悉Java语言 设置好Spring的环境 熟悉简单的Eclips ...

  9. activiti搭建(四)八项服务介绍

    转载请注明源地址:http://www.cnblogs.com/lighten/p/5927949.html 1.前言 之前学习的时候一直在其它文章看到activiti提供了七个接口来操作工作流,但在 ...

  10. Copying Rowsets

    I find that you often need to create and manipulate standalone rowsets. Sometimes you can get the da ...