您好,登錄后才能下訂單哦!
這篇文章主要為大家展示了“centos6.4 x86_64 Icinga1.9怎么安裝”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領大家一起研究并學習一下“centos6.4 x86_64 Icinga1.9怎么安裝”這篇文章吧。
1.安裝前的系統設置
關閉selinux vi /etc/sysconfig/selinux selinux=diabled 關閉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.創建用戶
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
安裝方法同上,修改設置 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上測試,執行下面的命令: /usr/local/icinga/libexec/check_nrpe -H <ip remote host> -n、 反回nrpe版本號,表示成功
以上是“centos6.4 x86_64 Icinga1.9怎么安裝”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。