PNP4Nagios

    內容表格
    1. 1. 開始安裝
    2. 2. 設定

    版本為 03:14, 27 Dec 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    PNP4Nagios - http://www.pnp4nagios.org/

    NOTE: 必須事先安裝及設定好 Nagios

    開始安裝

    必要的套件

    yum install gcc perl-Time-HiRes rrdtool-perl make
    
    tar xzf pnp4nagios-0.6.21.tar.gz
    cd pnp4nagios-0.6.21
    ./configure 
    

    NOTE: 

    如果 Nagios 的系統帳號與群組不是預設的 nagios,必須加上參數
    ./configure --with-nagios-user=icinga --with-nagios-group=icinga

    如果出現以下訊息,表示 configure 完成

    *** Configuration summary for pnp4nagios-0.6.21 03-24-2013 ***

      General Options:
      -------------------------         -------------------
      Nagios user/group:                nagios nagios
      Install directory:                /usr/local/pnp4nagios
      HTML Dir:                         /usr/local/pnp4nagios/share
      Config Dir:                       /usr/local/pnp4nagios/etc
      Location of rrdtool binary:       /usr/bin/rrdtool Version 1.3.8
      RRDs Perl Modules:                FOUND (Version 1.3008)
      RRD Files stored in:              /usr/local/pnp4nagios/var/perfdata
      process_perfdata.pl Logfile:      /usr/local/pnp4nagios/var/perfdata.log
      Perfdata files (NPCD) stored in:  /usr/local/pnp4nagios/var/spool

      Web Interface Options:
      -------------------------         -------------------
      HTML URL:                         http://localhost/pnp4nagios
      Apache Config File:               /etc/httpd/conf.d/pnp4nagios.conf


      Review the options above for accuracy.  If they look okay,
      type 'make all' to compile.

     

    開始編譯

    make all
    make fullinstall 
    

    設定

    編輯 /etc/httpd/conf.d/pnp4nagios.conf

    ...
    AuthUserFile /etc/nagios/htpasswd.users <-- 將這行改成與 Nagio 設定相同
    
    ... 
    

    瀏覽首頁:http://xxx.xxx.xxx.xxx/pnp4nagios/

    如果頁面的內容沒有出現錯誤,將以下檔案作更名

    mv /usr/local/pnp4nagios/share/install.php /usr/local/pnp4nagios/share/install.php.xxx
    
    Powered by MindTouch Core