nagisocheck_MK centos6.3

 
           Check_MK Install
[root@aa-test-02 media]# yum install httpd gcc glibc glibc-common gd gd-devel php
[root@aa-test-02 ~]# useradd -m nagios
[root@aa-test-02 ~]# groupadd nagcmd
[root@aa-test-02 ~]# usermod -a -G nagcmd nagios
[root@aa-test-02 ~]# usermod -a -G nagcmd apache
[root@aa-test-02 ~]#
 
[root@aa-test-02 nagios-3.2.3]# tar -xvf nagios-3.2.3.tar.gz
[root@aa-test-02 tmp]# cd nagios-3.2.3
[root@aa-test-02 nagios-3.2.3]# ./configure --with-command-group=nagcmd
[root@aa-test-02 nagios-3.2.3]# make all
[root@aa-test-02 nagios-3.2.3]# make install
[root@aa-test-02 nagios-3.2.3]# make install-init
[root@aa-test-02 nagios-3.2.3]# make install-config
[root@aa-test-02 nagios-3.2.3]# make install-commandmode
[root@aa-test-02 nagios-3.2.3]# make install-webconf
[root@aa-test-02 etc]# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
 
[root@aa-test-02 etc]# service httpd start
[root@aa-test-02 nagios-plugins-1.4.16]# tar -vxf nagios-plugins-1.4.16.tar.gz
[root@aa-test-02 tmp]# cd nagios-plugins-1.4.16
[root@aa-test-02 nagios-plugins-1.4.16]# ./configure --with-nagios-user=nagios --with-nagios-group=nagios
[root@aa-test-02 nagios-plugins-1.4.16]# make && make install
 
[root@aa-test-02 nagios-plugins-1.4.15]# chkconfig --add nagios
[root@aa-test-02 nagios-plugins-1.4.15]# chkconfig --add httpd
[root@aa-test-02 nagios-plugins-1.4.15]# chkconfig httpd on
[root@aa-test-02 nagios-plugins-1.4.15]#
[root@aa-test-02 nagios-plugins-1.4.15]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
 
http://192.168.0.239/nagios/
 
 
[root@aa-test-02 mod_python-3.3.1]# yum install python-dev httpd-devel
[root@aa-test-02 usr]# tar -vxf mod_python-3.3.1.tar
[root@aa-test-02 usr]# ./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/bin/python
[root@aa-test-02 usr]# make && make install
[root@aa-test-02 usr]# vim /etc/httpd/conf/httpd.conf
LoadModule python_module modules/mod_python.so
 
[root@aa-test-02 usr]# tar -vxf check_mk-1.2.0p3.tar.gz
[root@aa-test-02 check_mk-1.2.0p3]# cd check_mk-1.2.0p3
[root@aa-test-02 check_mk-1.2.0p3]# ./setup.sh
[root@aa-test-02 usr]# yum install check_mk-agent-1.2.0p3-1.noarch.rpm
 
 
 

文章标题:nagisocheck_MK centos6.3
本文路径:http://csruizhi.cn/article/gijgig.html

其他资讯

Copyright © 2007-2024 成都优众联杰科技有限公司 All Rights Reserved 蜀ICP备2024116266号
友情链接: 成都网站设计制作公司 营销型网站建设 手机网站制作 成都网站设计 成都网站制作 app网站建设 成都营销网站制作 成都网站设计 成都网站制作 外贸网站建设 网站建设 手机网站设计 网站设计制作 网站制作公司 成都定制网站建设 定制网站建设 成都网站制作 宜宾网站设计 成都网站建设 成都网站设计公司 手机网站建设套餐 企业网站建设公司