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://bzwzjz.com/article/gijgig.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 外贸网站设计方案 成都网站设计 达州网站设计 响应式网站设计 网站建设 营销型网站建设 营销网站建设 成都网站建设 专业网站建设 成都营销网站建设 企业网站建设 成都企业网站建设 手机网站制作设计 网站建设方案 网站建设推广 宜宾网站设计 成都品牌网站建设 网站制作 成都响应式网站建设 手机网站制作 网站建设 成都响应式网站建设公司