6)、啟動(dòng)相關(guān)服務(wù)
我們提供的服務(wù)有:成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)、微信公眾號(hào)開(kāi)發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、菏澤ssl等。為上1000+企事業(yè)單位解決了網(wǎng)站和推廣的問(wèn)題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的菏澤網(wǎng)站制作公司
[root@centreon ~]#/etc/init.d/httpd start [root@centreon ~]#/etc/init.d/MySQLd start [root@centreon ~]# mysqladmin -uroot password '111111' [root@centreon ~]#/etc/init.d/ndo2db start
7)、WEB界面安裝
http://192.168.100.187/centreon
發(fā)現(xiàn)提示php-posix模塊沒(méi)有安裝解決方法:1.安裝php-posix#yum-y install php-process
2.驗(yàn)證是否安裝上了
#php -m|grepposix
posix
好了,可以看到php已經(jīng)支持posix了,重啟apache就ok.
刷新安裝界面發(fā)現(xiàn)OK了;繼續(xù)next
Mysql root密碼:填入上面初始化密碼,centreon三個(gè)庫(kù)及密碼:自定義(我的是centreon)
配置centon管理員用戶、密碼,其他三項(xiàng)自定義
點(diǎn)擊Click here to complete your install完成安裝
到此就安裝完畢了;輸入帳號(hào),密碼即可
檢查nagios.cfg的配置,configuration-> nagios-> nagios.cfg-> Nagios CFG1點(diǎn)擊Data標(biāo)簽,檢查NDO的配置,主要有以下2項(xiàng)BrokerModule /usr/local/nagios/bin/ndomod.oconfig_file=/usr/local/nagios/etc/ndomod.cfgBrokerModule Options -1
檢查ndo2db.cfg的配置,configuration-> centreon-> ndo2db.cfg -> Principal點(diǎn)擊General標(biāo)簽,檢查NDO的配置,主要有以下3項(xiàng)SocketType tcpSocketName /var/run/ndo.sockTCPPort 5668
檢查ndomod.cfg的配置,configuration-> centreon-> ndomod.cfg-> Central-mod
檢查NDO的配置,主要有以下3項(xiàng)
InterfaceType tcpsocket
Out put 127.0.0.1
TCP Port 5668
8)、啟動(dòng)相關(guān)服務(wù)
[root@centreon~]# /etc/init.d/nagios start [root@centreon ~]#/etc/init.d/ndo2dbre start [root@centreon ~]#/etc/init.d/centcore start [root@centreon ~]#/etc/init.d/centstorage start [root@centreon ~]#/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg –d
9)、centreon漢化
[root@centreon ~]#wget [root@centreon ~]#mkdir -p /usr/local/centreon/www/locale/zh_CN/LC_MESSAGES/ [root@centreon ~]#cp messages.mo /usr/local/centreon/www/locale/zh_CN/LC_MESSAGES/ [root@centreon ~]#chown apache:apache -R /usr/local/centreon/www/locale