中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

搭建nagios監控

發布時間:2020-07-03 18:42:13 來源:網絡 閱讀:301 作者:xinerwener 欄目:移動開發

[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

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

拉孜县| 九台市| 奇台县| 旺苍县| 兴城市| 广西| 博罗县| 慈利县| 台东市| 大姚县| 诸暨市| 红安县| 文水县| 金溪县| 洛川县| 拜泉县| 襄城县| 田东县| 潞西市| 南康市| 汝南县| 西平县| 确山县| 衡阳市| 南充市| 石屏县| 惠东县| 东至县| 长海县| 囊谦县| 贺州市| 北票市| 万山特区| 阳西县| 开鲁县| 阿拉尔市| 自贡市| 通河县| 屏山县| 阳曲县| 随州市|