6)、启动相关服务
[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
发现提示php-posix模块没有安装
解决方法:
1.安装php-posix
#yum-y install php-process
2.验证是否安装上了
#php -m|grepposix
posix
好了,可以看到php已经支持posix了,重启apache就ok.
刷新安装界面发现OK了;继续next
Mysql root密码:填入上面初始化密码,centreon三个库及密码:自定义(我的是centreon)
配置centon管理员用户、密码,其他三项自定义
点击Click here to complete your install完成安装
到此就安装完毕了;输入帐号,密码即可
检查nagios.cfg的配置,configuration-> nagios-> nagios.cfg-> Nagios CFG1
点击Data标签,检查NDO的配置,主要有以下2项
BrokerModule /usr/local/nagios/bin/ndomod.oconfig_file=/usr/local/nagios/etc/ndomod.cfg
BrokerModule Options -1
检查ndo2db.cfg的配置,configuration-> centreon-> ndo2db.cfg -> Principal
点击General标签,检查NDO的配置,主要有以下3项
SocketType tcp
SocketName /var/run/ndo.sock
TCPPort 5668
检查ndomod.cfg的配置,configuration-> centreon-> ndomod.cfg-> Central-mod
检查NDO的配置,主要有以下3项
InterfaceType tcpsocket
Out put 127.0.0.1
TCP Port 5668
8)、启动相关服务
[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
转载于:https://blog.51cto.com/lansgg/1426676