monicazhang 发表于 2016-3-8 09:00:02

nagios+centreon总结(3)——nagios+centreon简单配置

来自:网络


1.配置centreton web①.启动服务:②.centreon web 安装配置:2.设置centreon控制nagios①. 在Nagios 中启用NDO 模块:②. 配置ndo2db,端口、socket type和ndomod.cfg一样:③激活配置:
nagios+centreon配置
1.配置centreton web①.启动服务: chkconfig httpd onchkconfig mysqld onchkconfig --add ndo2dbchkconfig ndo2db onchkconfig --add nagioschkconfig nagios on/etc/init.d/httpd restart/etc/init.d/mysqld start/etc/init.d/ndo2db start/etc/init.d/nagios startchkconfig centcore on                     #安装centreon时,自动完成的chkconfig centstorage on                  #安装centreon时,自动完成的                     nagios培训
②.centreon web 安装配置: 浏览器输入:http://ip/centreon/install/setup.php如果启动界面后出下面这种情况:You have to enable Cookies to proceed with the installationuploads/space/2014/0912/142152_w6ZN_727880.png
请换用firfox 浏览器重新打开。如果出现错误,centreon 里提示不成功的,重新执行前面./install.sh -i 的安装:
      rm -rf /usr/local/centreon
rm -rf /etc/centreonrm -rf /etc/httpd/conf.d/centreon.confrm -rf /var/lib/centreon./install.sh -i
2.设置centreon控制nagios         其实如果按照上面的步骤操作,默认都是设定好的,这里只是提示要注意的地方。          nagios实施          安装完成后,进入web界面会出现:
uploads/space/2014/0912/142412_GW4i_727880.jpg
Some database poller updates are not active; check your nagios platform
         可按照下面的步骤进行解决。

①. 在Nagios 中启用NDO 模块:
uploads/space/2014/0912/142537_iw09_727880.png
broker_module=/usr/local/nagios/bin//ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
uploads/space/2014/0912/142703_iOe7_727880.png
Output   :127.0.0.1
TCP Port:5668
Buffer size of the interface      :5000               监控软件
②. 配置ndo2db,端口、socket type和ndomod.cfg一样: uploads/space/2014/0912/142736_Ydra_727880.png
③激活配置:         1)、测试配置是否有问题         nagios配置 uploads/space/2014/0912/142806_8ULS_727880.png
uploads/space/2014/0912/142833_qdJj_727880.png
       2)、Export 激活配置
uploads/space/2014/0912/142924_Wpc4_727880.png
         第一次激活时,在/usr/local/nagios/etc 目录中会生成相应监控模板、主机、服务的配置文件:          开源监控软件 uploads/space/2014/0912/142952_Snd7_727880.png

注:以后每次修改配置文件,或添加新的Host、Service等,都需要执行这步”Export 激活配置”,才能生效!!          nagios安装


想做Nagios, Zabbix,Cacti,iTop各种交流的,可以进入开源监控工具Nagios交流QQ群号 :476809427
页: [1]
查看完整版本: nagios+centreon总结(3)——nagios+centreon简单配置