• nagios监控远程主机服务可能出现的问题


    1、使用插件NRPE监控命令不存在

    在添加服务的时候,命令配置文件中需要传递一个参数,那么在监控服务配置文件中,需要添加一个!表示后面的为参数。



    出现未定义的命令,查看被监控主机上的配置文件,添加监控命令:


    添加命令:


    重启xinetd服务:


    2、安装nagios插件报错

    check_http.c error


    安装nagios插件的时候,进行make,然后报错如上图。

    解决方法:

    安装openssl-devel包即可:


    3、web页面上没有权限查看监控页面

    在页面上查看监控服务的时候,没有权限查看相关信息。


    在页面上查看监控服务的时候,没有权限查看相关信息。

    解决方法:

       cgi.cfg配置文件中添加下列内容,为用户添加查看权限。

    default_user_name=kel
    authorized_for_system_information=nagiosadmin,kel  
    authorized_for_configuration_information=nagiosadmin,kel  
    authorized_for_system_commands=kel
    authorized_for_all_services=nagiosadmin,kel  
    authorized_for_all_hosts=nagiosadmin,kel
    authorized_for_all_service_commands=nagiosadmin,kel  
    authorized_for_all_host_commands=nagiosadmin,kel 
    路径如下:





    for linux and python
  • 相关阅读:
    redis的事务不是原子性
    Jenkins持续集成 入门实践
    Docker入门实践
    程序员该有的职业素养
    ubuntu sudoers配置错误
    日志分析工具 Log Parser
    压力测试记录
    Winscp使用sudo user登录
    Linux下通过NFS共享文件夹
    Jexus 5.4.6 on CentOS 6.6
  • 原文地址:https://www.cnblogs.com/kellyseeme/p/5525118.html
Copyright © 2020-2023  润新知