• nigos core 安装配置


    系统环境
        

            Apache
            PHP
            GCC compiler
            GD development libraries

    环境安装
        yum install httpd php
        yum install gcc glibc glibc-common
        yum install gd gd-deve
    添加用户:
        useradd -M nagios
        groupadd nagcmd
        usermod -a -G nagcmd nagios
        usermod -a -G nagcmd apache   
    解压缩并进入nagios软件目录
            cd /usr/src/
            tar xzf nagios-4.0.4.tar.gz
            cd nagios-4.0.4
    编译安装软件
            ./configure --with-command-group=nagcmd
            make all                    
            make install                                 使用make install来安装主程序,CGI和HTML文件     
            make install-init                           使用make install-init在/etc/rc.d/init.d安装启动脚本     
            make install-config                       installs *SAMPLE* config files
            make install-commandmode        使用make install-commandmode来配置目录权限
            make install-webconf                   使用make install-webconf来安装apache的配置文件
    配置WEB接口
     
            htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
             service httpd restart
    安装nagios-plugins
            cd /usr/src/nagios-plugins-2.0.3
            ./configure --with-nagios-user=nagios --with-nagios-group=nagios
            make
            make install
      启动nagios  
            chkconfig --add nagios
            chkconfig nagios on
            /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg        检查nagios配置是否正确
            service nagios start
     
     
    每天更新一点点,温习一点点点,进步一点点
  • 相关阅读:
    BZOJ3391: [Usaco2004 Dec]Tree Cutting网络破坏
    python总结二
    python总结一
    评论详解
    C++入门篇十三
    C++入门篇十二
    C++入门篇十一
    C++入门篇十
    C++入门篇九
    c++入门篇八
  • 原文地址:https://www.cnblogs.com/lmgsanm/p/4676957.html
Copyright © 2020-2023  润新知