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://cdiso.cn/article/gijgig.html

其他资讯