首页 > 其他 > 详细

nigos core 安装配置

时间:2015-07-26 06:03:54      阅读:244      评论:0      收藏:0      [点我收藏+]
系统环境
    

        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
    passwd 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接口
        cp /usr/bin/htpasswd  /usr/local/nagios/etc/htpasswd.users
        useradd -m nagiosadmin 
        passwd nagiosadmin
        
        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
 
 

nigos core 安装配置

原文:http://www.cnblogs.com/lmgsanm/p/4676957.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!