• Nagios 请检查HTTP服务器关于该CGI的访问权限设置


    无权查看任何主机的信息。 请检查HTTP服务器关于该CGI的访问权限设置。

    搜索了一下方法

    确保 htpasswd.user的所有组为nagios

    解决办法:

    vi /usr/local/nagios/etc/cgi.cfg

    将use_authentication的值改为0.

    use_authentication=0

    然后重启nagios服务

    service nagios restart

    还有另外一种可能:

    配置文件中的hostname称service_description使用了中文导致的。

    记住:hostname和service_description 都最好不要使用中文哦

    注:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    use_authentication=0        

    按照上面修改将默认的1 改为0,但是改这个之后在服务操作的界面,在想调整服务检测的时候就会出现这样的一个提示:
    Sorry Dave, I can't let you do that...
    其实并不需要降低cgi 的安全性,你只需要把你的nagios 管理员账户添加到cgi.cfg 文件就可
    以了,比如我的nagios 管理用户是linux(这个命令生成的账户 htpasswd -c /usr/local/nagios/etc/htpasswd.users linux  

      只有添加第一个账户要用-c 参数)

    就需要在cgi.cfg 文件中修改如下几项:
    将每项的nagiosadmin 更改为linux 即可,多用户用”,”分割。
    authorized_for_system_information=linux
    authorized_for_configuration_information=linux
    authorized_for_system_commands=linux
    authorized_for_all_services=linux
    authorized_for_all_hosts=linux
    authorized_for_all_service_commands=linux
    authorized_for_all_host_commands=linux

  • 相关阅读:
    Deepin安装Python开发环境
    Deepin怎样安装C/C++编译环境更好
    当 tcpdump -w 遇到 Permission denied
    c++中的虚函数
    c++中的new 和delete
    ubuntu没有输入窗口,不能调用输入法
    Ubuntu下升级VisualBox后无法启动 Kernel driver not installed (rc=-1908)
    BCD与GRUB
    adb shell device not found解决
    unsupported number of arguments...的错误
  • 原文地址:https://www.cnblogs.com/rhjeans/p/4533301.html
Copyright © 2020-2023  润新知