搭建nagios監(jiān)控

[root@localhost nagios]# tar zxvf nagios-3.2.0.tar.gz
[root@localhost nagios-3.2.0]# pwd
/root/nagios/nagios-3.2.0
[root@localhost nagios-3.2.0]# ./configure --prefix=/usr/local/nagios/
[root@localhost nagios-3.2.0]# make all && make install
[root@localhost nagios-3.2.0]# make install-init
[root@localhost nagios-3.2.0]# make install-commandmode
[root@localhost nagios-3.2.0]# make install-config

[root@localhost nagios]# tar -zxvf nagios-plugins-1.4.14.tar.gz
[root@localhost nagios]# cd nagios-plugins-1.4.14
[root@localhost nagios-plugins-1.4.14]# ./configure --prefix=/usr/local/nagios/
[root@localhost nagios-plugins-1.4.14]# make && make install

[root@localhost nagios]# tar jxvf nagios-cn-3.2.0.tar.bz2
[root@localhost nagios]# cd nagios-cn-3.2.0
[root@localhost nagios-cn-3.2.0]# ./configure
[root@localhost nagios-cn-3.2.0]# make all && make install

[root@localhost nagios]# tar zxvf httpd-2.2.22.tar.gz
[root@localhost httpd-2.2.22]# mkdir /usr/local/apache2
[root@localhost httpd-2.2.22]# ./configure --prefix=/usr/local/apache2
[root@localhost httpd-2.2.22]# make && make install

[root@localhost nagios]# cd php-5.3.20
[root@localhost php-5.3.20]# mkdir /usr/local/php
[root@localhost php-5.3.20]# ./configure --prefix=/usr/local/php/ --with-apxs2=/usr/local/apache2/bin/apxs
[root@localhost php-5.3.20]# make && make install


User nagios
Group nagios
<IfModule dir_module>
   DirectoryIndex index.html index.php
</IfModule>

AddType application/x-httpd-php .php

#setting for nagios
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
       <Directory "/usr/local/nagios/sbin">
       AuthType Basic
       Options ExecCGI
       AllowOverride None
       Order allow,deny
       Allow from all
       AuthName "Nagios Access"
AuthUserFile /usr/local/nagios/etc/htpasswd
       Require valid-user
       </Directory>

Alias /nagios "/usr/local/nagios/share"
       <Directory "/usr/local/nagios/share">
       AuthType Basic
       Options None
       AllowOverride None
       Order allow,deny
       Allow from all
       AuthName "nagios Access"
AuthUserFile /usr/local/nagios/etc/htpasswd
       Require valid-user
       </Directory>


[root@localhost conf]# /usr/local/apache2/bin/htpasswd -c /usr/local/nagios/etc/htpasswd yangqing
New password:
Re-type new password:
Adding password for user ixdba

[root@localhost nagios]# /etc/init.d/nagios start

天等網(wǎng)站制作公司哪家好,找成都創(chuàng)新互聯(lián)公司!從網(wǎng)頁(yè)設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、成都響應(yīng)式網(wǎng)站建設(shè)公司等網(wǎng)站項(xiàng)目制作,到程序開發(fā),運(yùn)營(yíng)維護(hù)。成都創(chuàng)新互聯(lián)公司于2013年創(chuàng)立到現(xiàn)在10年的時(shí)間,我們擁有了豐富的建站經(jīng)驗(yàn)和運(yùn)維經(jīng)驗(yàn),來保證我們的工作的順利進(jìn)行。專注于網(wǎng)站建設(shè)就選成都創(chuàng)新互聯(lián)公司。

本文標(biāo)題:搭建nagios監(jiān)控
文章起源:http://bm7419.com/article24/jdgcje.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、品牌網(wǎng)站制作、網(wǎng)站營(yíng)銷企業(yè)建站、品牌網(wǎng)站設(shè)計(jì)、用戶體驗(yàn)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁(yè)設(shè)計(jì)公司