溫馨提示×

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

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

centos yum搭建nagios

發(fā)布時(shí)間:2020-08-03 18:10:29 來源:網(wǎng)絡(luò) 閱讀:273 作者:yuandken 欄目:移動(dòng)開發(fā)

一,定義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





向AI問一下細(xì)節(jié)

免責(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)容。

AI