ITPub博客

首页 > Linux操作系统 > Linux操作系统 > nagios 3.1.0 install for oracle linux R4 U7

nagios 3.1.0 install for oracle linux R4 U7

原创 Linux操作系统 作者:流浪人生 时间:2009-04-22 16:04:07 0 删除 编辑
        最近需要监控的设备和数据库越来越多,从网上找了一下,发现用nagios的很多,决定试试
        操作系统:oracle enterprise linux R4 U7 i386
        http采用系统自带的apache 2.0
        从nagios官网下载安装软件
        1、nagios-3.1.0.tar.gz
         2、nagios-plugins-1.4.13.tar.gz
        
         安装步骤来源于nagios随机文档
         1、创建用户
          groupadd nagios
          groupadd nagcmd
          useradd -g nagios -G nagcmd -d /usr/local/nagios nagios
          usermod -a -G nagcmd apache
         
          2、安装软件

                 解压缩  tar -zxvf nagios-3.1.0.tar.gz
                               cd nagios-3.1.0
                               ./configure --with-command-group=nagcmd
                               make all
                               make install
                               make install-init
                               make install-config
                               make install-commandmode
                               make install-webconf
                               htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
                               service httpd restart
                解压缩plugin tar -zxvf nagios-plugins-1.4.13.tar.gz
                               cd nagios-plugins-1.4.13
                               ./configure --with-nagios-user=nagios --with-nagios-group=nagios --enable-redhat-pthread-workaround
                               make
                               make install
            3、将nagios加入服务
                  chkconfig --add nagios
                  chkconifg nagios on
             4、验证配置文件
                  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
             5、启动nagios
                   service start nagios
             6、如果selinux采用Enforcing mode
                   chcon -R -t httpd_sys_content_t   /usr/local/nagios/sbin/
                   chcon -R -t httpd_sys_conten_t   /usr/local/nagios/share/
                   否则CGI执行会有问题
              7、访问
                   http://ip/nagios      输入密码就可以访问了

         今天只是将nagios安装并能够访问了,下面还有很多工作要做,界面不错,功能也不错,值得研究

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/3326/viewspace-591451/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-11-11

  • 博文量
    17
  • 访问量
    50555