nagios+centreon总结之第三章——nagios+centreon简单配置

nagios+centreon配置php


1.配置centreton web

.启动服务:

chkconfig httpd onmysql

chkconfig mysqld onios

chkconfig --add ndo2dbweb

chkconfig ndo2db onsql

chkconfig --add nagios浏览器

chkconfig nagios ondom

/etc/init.d/httpd restartsocket

/etc/init.d/mysqld start测试

/etc/init.d/ndo2db startspa

/etc/init.d/nagios start

chkconfig centcore on                     #安装centreon时,自动完成的

chkconfig centstorage on                  #安装centreon时,自动完成的

 

.centreon web 安装配置:

浏览器输入:

http://ip/centreon/install/setup.php

若是启动界面后出下面这种状况:

You have to enable Cookies to proceed with the installation

请换用firfox 浏览器从新打开。

若是出现错误,centreon 里提示不成功的,从新执行前面./install.sh -i 的安装:

        rm -rf /usr/local/centreon

rm -rf /etc/centreon

rm -rf /etc/httpd/conf.d/centreon.conf

rm -rf /var/lib/centreon

./install.sh -i

 

2.设置centreon控制nagios

         其实若是按照上面的步骤操做,默认都是设定好的,这里只是提示要注意的地方。

         安装完成后,进入web界面会出现:

Some database poller updates are not active; check your nagios platform

 

         可按照下面的步骤进行解决。

 

. Nagios 中启用NDO 模块:

 


broker_module=/usr/local/nagios/bin//ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg

 

Output     127.0.0.1

TCP Port  5668

Buffer size of the interface      5000

 

. 配置ndo2db,端口、socket typendomod.cfg同样:

 

③激活配置:

         1)、测试配置是否有问题

 

 

         2)、Export 激活配置

 

         第一次激活时,在/usr/local/nagios/etc 目录中会生成相应监控模板、主机、服务的配置文件:

 

 

注:之后每次修改配置文件,或添加新的HostService等,都须要执行这步Export 激活配置,才能生效!!

开始centreon+nagios的旅程吧!!!

相关文章
相关标签/搜索