編譯Nagios程式

來源:互聯網
上載者:User

編譯Nagios程式的過程如下:

編譯Nagios主程式

[root@KCentOS5C nagios-2.9]# make all

Nagios主程式編譯成功後將返回資訊

-----------------------------------------------------

*** Compile finished ***

If the main program and CGIs compiled without any errors, you

can continue with installing Nagios as follows (type 'make'

without any arguments for a list of all possible options):

如果在編譯當中沒有發生錯誤的話,那麼可以照以下這些命令繼續操作。

make install

- This installs the main program, CGIs, and HTML files

執行“make install”命令來對主程式,CGI以及HTML網頁進行安裝。

make install-init

- This installs the init script in /etc/rc.d/init.d

執行“install-init”命令來在/etc/rc.d/init.d/目錄中安裝啟動指令碼。

make install-commandmode

- This installs and configures permissions on the

directory for holding the external command file

執行“install-commandmode”命令來安裝和配置外部命令對Nagios主路徑操作的許可權。(這裡所謂的外部命令主要是指Apache服務通過CGI來對Nagios的進行的操作。使用者將通過Web以執行CGI程式指令碼的方式來對Nagios的檢測結果進行讀取和調用。)

make install-config

- This installs *SAMPLE* config files in /usr/local/nagios/etc

You'll have to modify these sample files before you can

use Nagios. Read the HTML documentation for more info

on doing this. Pay particular attention to the docs on

object configuration files, as they determine what/how

things get monitored!

執行“make install-config”命令將會在/usr/local/etc/這個Nagios編譯安裝的主配置路徑下安裝樣本配置模板,這將對於之後的配置制定協助很大。

*** Support Notes *******************************************

這些關於支援的資訊就不再詳細講了

If you have questions about configuring or running Nagios,

please make sure that you:

- Look at the sample config files

- Read the HTML documentation

- Read the FAQs online at

http://www.nagios.org/faqs

before you post a question to one of the mailing lists.

Also make sure to include pertinent information that could

help others help you. This might include:

- What version of Nagios you are using

- What version of the plugins you are using

- Relevant snippets from your config files

- Relevant error messages from the Nagios log file

For more information on obtaining support for Nagios, visit:

通過文章的強力描述,我們終於明白了編譯Nagios程式的全過程!希望大家喜歡!

  • nagios服務配置
  • CentOS環境Nagios的安裝與配置
  • 使用nagios監控oracle 10g
  • 你應該知道的Nagios技巧
  • Solaris下的nagios監控系統
  • 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.