標籤:style http color io os ar for 檔案 2014
nagios+centreon配置
1.配置centreton web ①.啟動服務:
chkconfig httpd on
chkconfig mysqld on
chkconfig --add ndo2db
chkconfig ndo2db on
chkconfig --add nagios
chkconfig nagios on
/etc/init.d/httpd restart
/etc/init.d/mysqld start
/etc/init.d/ndo2db start
/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 type和ndomod.cfg一樣:
③啟用配置:
1)、測試組態是否有問題
2)、Export 啟用配置
第一次啟用時,在/usr/local/nagios/etc 目錄中會產生相應監控模板、主機、服務的設定檔:
註:以後每次修改設定檔,或添加新的Host、Service等,都需要執行這步”Export 啟用配置”,才會生效!!
開始centreon+nagios的旅程吧!!!
nagios+centreon總結之第三章——nagios+centreon簡單配置