1
2
3
4
|
[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.cfgBrokerModule Options -1
检查ndo2db.cfg的配置,configuration-> centreon-> ndo2db.cfg -> Principal点击General标签,检查NDO的配置,主要有以下3项SocketType tcpSocketName /var/run/ndo.sockTCPPort 5668
检查ndomod.cfg的配置,configuration-> centreon-> ndomod.cfg-> Central-mod
检查NDO的配置,主要有以下3项
InterfaceType tcpsocket
Out put 127.0.0.1
TCP Port 5668
8)、启动相关服务
1
2
3
4
5
|
[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汉化
1
2
3
4
|
[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
|
本文转自 西索oO 51CTO博客,原文链接:http://blog.51cto.com/lansgg/1426676