nagios+centreon總結之第三章——nagios+centreon簡單配置

來源:互聯網
上載者:User

標籤: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簡單配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.