Nagios 4.0.1版本安装 适用于RHEL/Centos 5.x/6.x 或者Fedora 17/18/19(一)
来源:互联网 发布:买手机哪几个淘宝网好 编辑:程序博客网 时间:2024/06/03 16:05
步骤2:创建一个nagios用户和组
[root@taoteng ~]# useradd nagios[root@taoteng ~]# groupadd nagcmd
[root@tecmint]# usermod -G nagcmd nagios
Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagcmd Event Broker: yes Install ${prefix}: /usr/local/nagios Install ${includedir}: /usr/local/nagios/include/nagios Lock file: ${prefix}/var/nagios.lock Check result directory: ${prefix}/var/spool/checkresults Init directory: /etc/rc.d/init.d Apache conf.d directory: /etc/httpd/conf.d Mail program: /bin/mail Host OS: linux-gnu Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /bin/tracerouteReview the options above for accuracy. If they look okay,type 'make all' to compile the main program and CGIs.
*** Main program, CGIs and HTML files installed ***You can continue with installing Nagios as follows (type 'make'without any arguments for a list of all possible options): make install-init - This installs the init script in /etc/rc.d/init.d make install-commandmode - This installs and configures permissions on the directory for holding the external command file make install-config - This installs sample config files in /usr/local/nagios/etc
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc/objects/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/nagios.cfg /usr/local/nagios/etc/nagios.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg/usr/bin/install -c -b -m 660 -o nagios -g nagios sample-config/resource.cfg /usr/local/nagios/etc/resource.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/templates.cfg /usr/local/nagios/etc/objects/templates.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/commands.cfg /usr/local/nagios/etc/objects/commands.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/contacts.cfg /usr/local/nagios/etc/objects/contacts.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/timeperiods.cfg /usr/local/nagios/etc/objects/timeperiods.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/localhost.cfg /usr/local/nagios/etc/objects/localhost.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/windows.cfg /usr/local/nagios/etc/objects/windows.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/printer.cfg /usr/local/nagios/etc/objects/printer.cfg/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/switch.cfg /usr/local/nagios/etc/objects/switch.cfg*** Config files installed ***Remember, these are *SAMPLE* config files. You'll need to readthe documentation for more information on how to actually defineservices, hosts, etc. to fit your particular needs.
[root@taoteng nagios-4.0.1]# htpasswd -s -c /usr/local/nagios/etc/htpasswd.users nagiosadminNew password:Re-type new password:Adding password for user nagiosadmin
Nagios Overview
所有的服务概述:
进程概述:
!!升级nagios到新版本!!
[root@taoteng ~]# service nagios stop[root@taoteng ~]# tar –zxvf nagios-4.0.1.tar.gz[root@taoteng ~]# cd nagios-4.0.1[root@taoteng ~]# ./configure[root@taoteng ~]# make all[root@taoteng ~]# make install[root@taoteng ~]# service nagios start
0 0
- Nagios 4.0.1版本安装 适用于RHEL/Centos 5.x/6.x 或者Fedora 17/18/19(一)
- [MongoDB] 安装MongoDB Mac OS X & RHEL/CentOS/Fedora
- CentOS/RHEL安装X Window
- Centos 5.x RHEL 5.x 安装salt升级Zmq2.x 到Zmq4.x
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- RHEL(redhat 5.x,6.x)和CentOS上Gitlab安装全过程
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- 在Centos 5.x或6.x上安装RHEL EPEL Repo
- How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x
- Oracle Database 11g Release 2 Installation on RHEL/CentOS 6.x/5.x/4.x
- How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x
- RHEL/CentOS 7.x/6.x/5.x开启EPEL仓库
- CentOS 6.x 安装最新版本 git
- RHEL/CentOS 6.x 系统服务详解
- RHEL/CentOS 6.x 系统服务详解
- RHEL/CentOS 6.x 系统服务详解
- RHEL/CentOS 6.x 系统服务详解
- RHEL/CentOS 6.x的系统服务
- hdu 4597 Play Game(记忆化搜索)
- 用node.js制作DNS解释网站
- java中的抽象类
- Redis学习笔记2-Redis的安装体验
- 有关Android Usb Host开发
- Nagios 4.0.1版本安装 适用于RHEL/Centos 5.x/6.x 或者Fedora 17/18/19(一)
- xcode 5.0 以上去掉icon高亮方法&iOS5白图标问题
- SQL Server 2005“错误1706。安装程序找不到需要的文件。请检查……”的处理办法
- 阿里云上架设LordofPomelo全流程
- c++之多文件编写实例
- 微信公众帐号开发教程第9篇-QQ表情的发送与接收
- git常用语句
- hibernate缓存的性能对比测试
- 关于函数模板以及具体化