icinga-cn中文項目

來源:互聯網
上載者:User

Icinga其實就是nagios的二次開發,他包括了nagios的所有功能,甚至可以直接把nagios的設定檔拿來用。icinga-cn是專門的中文項目,更適合國人使用。
1 準備
#yum install freetype libjpeg libpng fontconfig libdbi libdbi-drivers libdbi-devel libdbi-dbd-mysql gcc glibc glibc-common gd gd-devel libjpeg libjpeg-devel libpng libpng-devel net-snmp net-snmp-devel
2 下載安裝icinga
#wget http://cdnetworks-kr-1.dl.sourceforge.net/project/icinga-cn/icinga-cn/icinga-cn-1.5.1/icinga-cn-1.5.1.tar.bz2

# tar jxvf icinga-cn-1.5.1.tar.bz2
#cd icinga-1.5.1/
#./configure –prefix=/usr/local/icinga –enable-idoutils –enable-embedded-perl –enable-ssl –with-icinga-user=icinga –with-icinga-group=icinga –with-command-user=icinga –with-command-grou=icinga
#make all
#make install
#make install-init //# 安裝主程式,CGI和HTML
#make install-commandmode //在/etc/rc.d/init.d安裝啟動指令碼
#make install-api //安裝api介面檔案
#make install-config // 安裝配置執行個體設定檔
#make install-webconf //安裝apache相關的設定檔
#chkconfig –add icinga
#chkconfig icinga on
# /etc/init.d/icinga start
3 設定web頁面登陸使用者及密碼(必須)
預設使用者名 icingaadmin 預設密碼admin
使用者可自行修改,如htpasswd -c /usr/local/icinga/etc/htpasswd.users icinga
4 安裝nagios-plugins
# wget http://sourceforge.net/projects/nagiosplug/files/nagiosplug/1.4.15/nagios-plugins-1.4.15.tar.gz/download
# tar zxvf nagios-plugins-1.4.15.tar.gz
# cd nagios-plugins-1.4.15/
#./configure –prefix=/var/www/icinga/ –with-cgiurl=/icinga/cgi-bin –with-htmurl=/icinga –with-nagios-user=icinga –with-nagios-group=icinga
# make && make install
5 安裝nrpe
#wget http://cdnetworks-kr-1.dl.sourceforge.net/project/icinga-cn/nrpe-icinga/nrpe-icinga-2.12.tar.bz2
#tar jxvf nrpe-icinga-2.12.tar.bz2
# ./configure –with-nrpe-user=icinga –with-nrpe-group=icinga –with-icinga-user=icinga –with-icinga-group=icinga
#make && make install

拷貝nrpe檔案:
#cp src/nrpe /usr/local/icinga/bin
#cp sample-config/nrpe.cfg /usr/local/icinga/etc

啟動nrpe病檢查:
# /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 –n
NRPE v2.12
stop nrpe:
#kill `ps -ef | grep “sample-config/nrpe.cfg” | grep -v grep | awk ‘{print $2}’`

登陸
在瀏覽器輸入http://IP/icinga/
輸入你的使用者名稱和密碼就登陸進去了。留念

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.