編譯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伺服器的自我監控實現