您好,登錄后才能下訂單哦!
這篇文章主要為大家展示了“centos6.4 x86_64 Icinga1.9怎么安裝”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“centos6.4 x86_64 Icinga1.9怎么安裝”這篇文章吧。
1.安裝前的系統(tǒng)設(shè)置
關(guān)閉selinux vi /etc/sysconfig/selinux selinux=diabled 關(guān)閉iptables chkconfig iptabels off reboot
2.安裝的先決條件:
yum -y install httpd gcc gcc-c++ gd gd-devel yum -y intall install httpd gcc glibc glibc-common gd gd-devel yum -y install libjpeg libjpeg-devel libpng libpng-devel yum -y install net-snmp net-snmp-devel net-snmp-utils yum -y install libdbi-devel libdbi libdbi-drivers libdbi-dbd-mysql
3.創(chuàng)建用戶
useradd icinga passwd icinga useradd www groupadd icinga-cmd usermod -a -G icinga-cmd icinga usermod -a -G icinga-cmd www
4.下載軟件
wget http://sourceforge.net/projects/icinga-cn/files/icinga-cn/icinga-cn-1.9/icinga-cn-1.9.4.tar.bz2 wget http://sourceforge.net/projects/icinga-cn/files/icinga%20plugins/icinga-nrpe-2.14.tar.gz wget http://assets.nagios.com/downloads/nagiosplugins/nagios-plugins-1.5.tar.gz
5.開始安裝icinga-cn-1.9
tar jxvf icinga-cn-1.9.4.tar.bz2 cd icinga-cn-1.9 ./configure --with-command-group=icinga-cmd make all make fullinstall make install-config make cgis make install-cgis make install-html make install-webconf htpasswd -c /usr/local/icinga/etc/htpasswd.users icingaadmin 完成之后service httpd restart
6.開始安裝nagios-plugins
tar zxvf nagios-plugins-1.5.tar.gz cd nagios-plugins-1.5 ./configure --prefix=/usr/local/icinga --with-cgiurl=/icinga/cgi-bin --with-nagios-user=icinga --with-nagios-group=icinga make make install
7.啟動icinga
chkconfig --add icinga chkconfig icinga on service icinga start
8.開始安裝icinga-nrpe-2.14
yum -y install gcc openssl openssl-devel tar zxvf icinga-nrpe-2.14.tar.gz cd icinga-nrpe-2.14 ./configure make all make install-plugin
9.啟動icinga-nrpe及測試
cd nagios-nrpe-2.14 cp src/nrpe /usr/local/icinga/bin cp sample-config/nrpe.cfg /usr/local/icinga/etc 啟動: /usr/local/icinga/bin/nrpe -n -c /usr/local/icinga/etc/nrpe.cfg -d 測試: /usr/local/icinga/libexec/check_nrpe -H 127.0.0.1
10.在客戶端上安裝icinga-nrpe及測試
host
安裝方法同上,修改設(shè)置 vi /usr/local/icinga/etc/nrpe.cfg allowed_hosts=x.x.x.x /*修改為icinga server的IP 啟動/usr/local/icinga/bin/nrpe -n -c /usr/local/icinga/etc/nrpe.cfg -d 在icinga server上測試,執(zhí)行下面的命令: /usr/local/icinga/libexec/check_nrpe -H <ip remote host> -n、 反回nrpe版本號,表示成功
以上是“centos6.4 x86_64 Icinga1.9怎么安裝”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識,歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。