您好,登錄后才能下訂單哦!
一,定義yum非官方庫
1, vi /etc/yum.repos.d/dag.repo
在這之中加入以下內(nèi)容:
[dag]
name= Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
2. 手工下載RPM-GPG-KEY.dag.txt(#wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt)
rpm --import RPM-GPG-KEY.dag.txt
二,安裝
1,安裝nagios
yum -y install nagios
service httpd restart
htpasswd -c /etc/nagios/htpasswd.users nagios 創(chuàng)建用戶 nagios 用于登錄nagios
2,安裝 nagios-plugins,否則連localhost都無法監(jiān)控
yum -y install nagios-plugins
(注意關(guān)閉selinux)
可以通過 web訪問 nagios了
三,漢化
wget http://sourceforge.net/projects/nagios-cn/files/sourcecode/zh_CN%203.2.3/nagios-cn-3.2.3.tar.bz2
tar jxvf nagios-cn-3.2.3.tar.bz2
cd nagios-cn-3.2.3
./configure
make all
make install
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。