nagios與cacti、ntop整合

來源:互聯網
上載者:User
一、cacit與nagios-------------------安裝
1、LAMP環境
2、cacti安裝
3、nagios安裝
4、nagios與cacti的整合(聯絡)
4、安裝snmp協議
6、推薦的cacti模板
  http://docs.cacti.net/templates(官方模板)
7、安裝linux伺服器外掛程式(用戶端)------nrpe
8、監控windows伺服器外掛程式(用戶端)

二、cacti與nagios的使用

cacti是使用snmp協議監控所有的裝置,而nagios可以使用snmp監控,也可以使用perl寫的指令碼外掛程式監控
1、cacti添加監控服務
         1)cacti監控nginx服務
         2)cacti監控squid服務
         3)cacti監控mysql服務
         4)cacti監控apache服務
         5)cacti監控memca的服務
2、cacti外掛程式的使用
         1)Threshold、setting這兩個外掛程式是一起使用的  警示設定
         2)npc         這個外掛程式是cacti與nagios整合使用的外掛程式
         3)monitor    這個外掛程式伺服器啟動並執行狀態
          wget http://www.constructaegis.com/downloads/npc-2.0.4.tar.gz
          wget http://cactiusers.org/downloads/settings.tar.gz
           wget http://cactiusers.org/downloads/thold.tar.gz
          wget http://cactiusers.org/downloads/routerconfigs.tar.gz
          wget http://cactiusers.org/downloads/monitor.tar.gz
    cacti舊版本的外掛程式  http://cactiusers.org/downloads/      
                               (在新架構的cacti-plugins可以顯示舊架構不能使用,那就下載新版本)
    cacti新版本的外掛程式 http://svn.cacti.net/viewvc/?root=Plugins
    新版下載方法: # cd /usr/local/http/htdocs/cacti/plugins
                             #svn co svn://svn.cacti.net/cacti_plugins/monitor
                             #mv monitor/trunk  monitor    (因為trunk這個目錄下的為最新版本)

3、nagios設定檔說明
4、nagios監控服務
        1)監控mysql資料庫
        2)nagios監控memcache
        3)nagios監控squid
5.安裝nagios使用snmp採集方式
             nagios大量的監控外掛程式http://www.monitoringexchange.org(含有很多支援snmp外掛程式)
6.流量圖的方式展示nagios
7.cacti字型在圖形中顯示不正常的解決方案
下載並安裝cjkuni-fonts中文字型,字型名ukai.ttf
#wget   http://ftp.tw.debian.org/debian/pool/main/t/ttf-arphic-ukai/ttf-arphic-ukai_0.1.20060928.orig.tar.gz
#tar zxvf ttf-arphic-ukai_0.1.20060928.orig.tar.gz
#cd ttf-arphic-ukai-0.1.20060928/
#cp ukai.ttf /usr/lshare/fonts/ukai.ttf
    另外一種方法就是cp  ukai.ttf /usr/local/rrdtool/share/rrdtool/fonts/,再在cacti控制台---設定--路徑--RRDTool預設字型路徑填上/usr/local/rrdtool/share/rrdtool/fonts/ukai.tt

三、實現cacti與nagios的遷移
      
四、警示設定
           1.nagios警示設定
           2.限制Nagios警示次數

nagios-cn中文文檔 :http://nagios-cn.sourceforge.net/nagios-cn/

五、ntop的安裝與cacti的整合

聯繫我們

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