nagios介绍及Server安装(二)
6)、启动相关服务
[root@centreon~]#/etc/init.d/httpdstart[root@centreon~]#/etc/init.d/mysqldstart[root@centreon~]#mysqladmin-urootpassword'111111'[root@centreon~]#/etc/init.d/ndo2dbstart
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)、启动相关服务
[root@centreon~]#/etc/init.d/nagiosstart[root@centreon~]#/etc/init.d/ndo2dbrestart[root@centreon~]#/etc/init.d/centcorestart[root@centreon~]#/etc/init.d/centstoragestart[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~]#cpmessages.mo/usr/local/centreon/www/locale/zh_CN/LC_MESSAGES/[root@centreon~]#chownapache:apache-R/usr/local/centreon/www/locale
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。