安裝NAGIOS圖形(PNP)

來源:互聯網
上載者:User

標籤:include   local   share   軟體   


1. 底層支援庫(圖形顯示的依賴) yum install -y cairo pango zlib zlib-devel freetype freetype-devel gd gd-devel

2. RRDTOOLS的支援軟體libart_lgpl

    yum install libart_lgpl

    或者編譯安裝libart_lgpl-2.3.17

   重要步驟:

   cp -r libart-2.0 /usr/include/

3. 安裝rrd-tools

    ./configure --prefix=/usr/local/rrdtool --disable-python --disable-tcl

4. 安裝PNP

    ./configure --with-rrdtool=/usr/local/rrdtool/bin/rrdtool    ----->真正出圖的命令

    --with-perfdata=/usr/local/nagios/share/perfdata              ----->出圖所用的資料路徑

      WARNING: The RRDs Perl Modules are not found on your System

           Using RRDs will speedup things in larger Installtions.

     警告不用理會。

     詳細安裝記錄:

       978  ./configure --with-rrdtool=/usr/local/rrdtool/bin/rrdtool --with-perfdata=/usr/local/nagios/share/perfdata

       979  make all

       980  make install

       981  make install-config

       982  make install-init

5. 至此,PNP及相關NAGIOS圖形安裝完畢

   

6. 配置command.cfg

   

# ‘process-host-perfdata‘ command definition

define command{

       command_name    process-host-perfdata

       command_line    /usr/local/nagios/libexec/process_perfdata.pl

       }



# ‘process-service-perfdata‘ command definition

define command{

       command_name    process-service-perfdata

       command_line    /usr/local/nagios/libexec/process_perfdata.pl

       }


7. 整合nagios和pnp的web顯示頁面

   編輯host.cfg添加action_url 參數 或者編輯模板檔案templates.cfg

   action_url              /nagios/pnp/index.php?host=$HOSTNAME$

  650) this.width=650;" src="http://s5.51cto.com/wyfs02/M01/75/C4/wKioL1ZCKN7jJuUjAACKwW07dJU576.jpg" title="1.jpg" alt="wKioL1ZCKN7jJuUjAACKwW07dJU576.jpg" />

再次整合services

/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M01/75/C7/wKiom1ZCKmzQyEUXAAByKRgsBhU970.jpg" title="2.jpg" alt="wKiom1ZCKmzQyEUXAAByKRgsBhU970.jpg" />


























安裝NAGIOS圖形(PNP)

聯繫我們

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