cacti結合nagios

來源:互聯網
上載者:User

標籤:

使用系統ubuntu12.0.45

監視軟體,cacti 使用的是源碼安裝系統內建的版本過低需要添加外掛程式(我不會)so

nagios採用的系統內建版本

安裝nagios

apt-get install nagios3

中間出現的密碼最好都填寫一致以免出錯

 

apt-get install ndoutils

 

最後輸入mysql的root密碼

 

 

  1. 編輯ndoutils

 

vim /etc/default/ndoutils

ENABLE_NDOUTILS=1

Vim  /etc/nagios3/ndo2db.cfg

socket_type=tcp

socket_name=/var/cache/nagios3/ndo.sock

db_port=3306

db_name=cacti

db_prefix=npc_

db_user=cacti

db_pass=cacti

debug_level=1

debug_file=/var/cache/nagios3/ndo2db.debug

vim /etc/nagios3/nagios.cfg

check_external_commands=1

  在251行添加如下內容

broker_module=/usr/lib/ndoutils/ndomod-mysql-3x.o config_file=/etc/nagios3/ndomod.cfg

process_performance_data=1

vim /etc/nagios3/ndomod.cfg

output_type=tcpsocket

ouput=127.0.0.1

buffer_file=/var/cache/nagios3/ndomod.tmp

 啟動服務

service nagios3 restart

/etc/init.d/ndoutils restart

/etc/init.d/mysql restart

service apache2 restart

  1. 添加模組設定檔

 

 

 

配置nagios完成

提醒讀者,此文章有一處有問題,也是筆者自己部署的時候跳進別人的坑,大家自己找找。很容易的。

有問題可以留言,基本上一直使用這個部落格

 

cacti結合nagios

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.