編譯Nagios程序
編譯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):
如果在編譯當中沒有發(fā)生錯誤的話,那么可以照以下這些命令繼續(xù)操作。
make install
- This installs the main program, CGIs, and HTML files
執(zhí)行“make install”命令來對主程序,CGI以及HTML網頁進行安裝。
make install-init
- This installs the init script in /etc/rc.d/init.d
執(zhí)行“install-init”命令來在/etc/rc.d/init.d/目錄中安裝啟動腳本。
make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file
執(zhí)行“install-commandmode”命令來安裝和配置外部命令對Nagios主路徑操作的權限。(這里所謂的外部命令主要是指Apache服務通過CGI來對Nagios的進行的操作。用戶將通過Web以執(zhí)行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!
執(zhí)行“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環(huán)境Nagios的安裝與配置
- 使用nagios監(jiān)控oracle 10g
- 你應該知道的Nagios技巧
- Solaris下的nagios監(jiān)控系統
- Nagios服務器的自我監(jiān)控實現