自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Cents下Nagios的安裝-Nagios主程序的安裝

運(yùn)維 系統(tǒng)運(yùn)維
Nagios主程序的安裝:Nagios是什么?Nagios是種用于Unix類(lèi)或Linux下的主機(jī)和服務(wù)監(jiān)測(cè)工具,系統(tǒng)管理員可以使用它來(lái)監(jiān)測(cè)系統(tǒng)。本文將全面講解Nagios主程序的安裝。

  Nagios主程序的安裝:

  1.解壓縮Nagios主程序源代碼包

  1.   [root@KCentOS5C ~]# tar -zxvf nagios-2.9.tar.gz  
  2.  

  2.進(jìn)入Nagios主程序包的解壓目錄

  1.   [root@KCentOS5C ~]# cd nagios-2.9  
  2.  

  3.預(yù)配置Nagios主程序的環(huán)境以及指定安裝路徑

  1.   [root@KCentOS5C nagios-2.9]# ./configure --prefix=/usr/local/nagios  
  2.  

  預(yù)配置成功后將返回配置環(huán)境信息

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

  1.   *** Configuration summary for nagios 2.9 04-10-2007 ***:  
  2.  
  3.   General Options:  
  4.  

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

  1.   Nagios executable: nagios  
  2.  
  3.   Nagios user/group: nagios,nagios  
  4.  
  5.   Command user/group: nagios,nagios  
  6.  
  7.   Embedded Perl: no  
  8.  
  9.   Event Broker: yes  
  10.  
  11.   Install ${prefix}: /usr/local/nagios  
  12.  
  13.   Lock file: ${prefix}/var/nagios.lock  
  14.  
  15.   Init directory: /etc/rc.d/init.d  
  16.  
  17.   Host OS: linux-gnu  
  18.  
  19.   Web Interface Options:  
  20.  

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

  1.   HTML URL: http://localhost/nagios/  
  2.  
  3.   CGI URL: http://localhost/nagios/cgi-bin/  
  4.  
  5.   Traceroute (used by WAP): /bin/traceroute  
  6.  
  7.   Review the options above for accuracy. If they look okay,  
  8.  
  9.   type 'make all' to compile the main program and CGIs.  
  10.  

  請(qǐng)注意看最后的提示,如果對(duì)以上反饋信息接受的話,則需要繼續(xù)執(zhí)行“make all”命令來(lái)編譯主程序以及CGI。

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

  4.編譯Nagios主程序

  1.   [root@KCentOS5C nagios-2.9]# make all  
  2.  

  Nagios主程序編譯成功后OK

  如果在編譯當(dāng)中沒(méi)有發(fā)生錯(cuò)誤的話,那么可以照以下這些命令繼續(xù)操作。

  1.   make install  
  2.  
  3.   - This installs the main program, CGIs, and HTML files  
  4.  

  執(zhí)行“make install”命令來(lái)對(duì)主程序,CGI以及HTML網(wǎng)頁(yè)進(jìn)行安裝。

  1.   make install-init  
  2.  
  3.   - This installs the init script in /etc/rc.d/init.d  
  4.  

  執(zhí)行“install-init”命令來(lái)在/etc/rc.d/init.d/目錄中安裝啟動(dòng)腳本。

  1.   make install-commandmode  
  2.  
  3.   - This installs and configures permissions on the  
  4.  
  5.   directory for holding the external command file  
  6.  

  執(zhí)行“install-commandmode”命令來(lái)安裝和配置外部命令對(duì)Nagios主路徑操作的權(quán)限。(這里所謂的外部命令主要是指Apache服務(wù)通過(guò)CGI來(lái)對(duì)Nagios的進(jìn)行的操作。用戶將通過(guò)Web以執(zhí)行CGI程序腳本的方式來(lái)對(duì)Nagios的檢測(cè)結(jié)果進(jìn)行讀取和調(diào)用。)

  1.   make install-config  
  2.  
  3.   - This installs *SAMPLE* config files in /usr/local/nagios/etc  
  4.  
  5.   You'll have to modify these sample files before you can  
  6.  
  7.   use Nagios. Read the HTML documentation for more info  
  8.  
  9.   on doing this. Pay particular attention to the docs on  
  10.  
  11.   object configuration files, as they determine what/how  
  12.  
  13.   things get monitored!  
  14.  

  執(zhí)行“make install-config”命令將會(huì)在/usr/local/etc/這個(gè)Nagios編譯安裝的主配置路徑下安裝示例配置模板,這將對(duì)于之后的配置制定幫助很大。

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

  5.安裝Nagios主程序、CGI以及網(wǎng)頁(yè)

  1.   [root@KCentOS5C nagios-2.9]# make install  
  2.  

  安裝完Nagios主程序、CGI和網(wǎng)頁(yè)的之后將提示安裝成功信息以及剩余可操作的步驟

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

  6.安裝Nagios的系統(tǒng)啟動(dòng)腳本

  1.   [root@KCentOS5C nagios-2.9]# make install-init  
  2.  

  安裝完Nagios的系統(tǒng)啟動(dòng)腳本之后將提示腳本安裝成功信息以及剩余可操作的步驟

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

  7.將Nagios的啟動(dòng)腳本添加到系統(tǒng)服務(wù)當(dāng)中去

  1.   [root@KCentOS5C ~]# chkconfig --add nagios  
  2.  

  8.將Nagios服務(wù)加入到系統(tǒng)啟動(dòng)服務(wù)當(dāng)中去

 

  1.   [root@KCentOS5C ~]# chkconfig nagios on  
  2.  

  9.安裝和配置外部命令對(duì)Nagios主路徑的操作權(quán)限

  1.   [root@KCentOS5C nagios-2.9]# make install-commandmode  
  2.  

  安裝配置外操作權(quán)限后將提示配置成功信息以及剩余可操作步驟

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

  10.將Apache服務(wù)宿主用戶加到nagios組里面

  這樣做是為了讓Apache有適當(dāng)?shù)臋?quán)限能夠通過(guò)CGI腳本程序?qū)agios進(jìn)行調(diào)用,否則Apache將沒(méi)有權(quán)限調(diào)用Nagios,用戶通過(guò)Web將無(wú)法訪問(wèn)Nagios處理的所有信息。

  1.   [root@KCentOS5C nagios-2.9]# usermod -G nagios apache  
  2.  

  11.安裝Nagios的配置模板

  1.   [root@KCentOS5C nagios-2.9]# make install-config  
  2.  

  安裝完畢Nagios主程序的配置模板后將反饋安裝成功的提示信息。

  上一節(jié):Apache服務(wù)的安裝     下一節(jié):plugins插件程序

【編輯推薦】

Nagios被監(jiān)控端的安裝

Nagios的性能分析

新手入門(mén)Nagios的安裝

責(zé)任編輯:zhaolei 來(lái)源: Chinaunix
相關(guān)推薦

2011-03-22 14:16:17

Nagios安裝

2011-03-22 13:37:29

Nagios安裝

2011-03-23 10:17:24

2011-03-22 13:53:00

CentsNagios安裝

2011-03-22 14:20:30

Nagios安裝

2011-03-21 13:01:56

LinuxNagios安裝

2011-03-24 13:00:22

CentOSNagios安裝

2011-03-21 15:35:01

Nagiosnagios-plug安裝

2011-03-22 10:54:01

2014-08-06 15:25:36

LinuxNagios

2011-03-22 10:10:18

CentOSNagios安裝

2011-03-25 12:50:29

nagios安裝

2011-03-23 13:32:14

配置Nagios系統(tǒng)

2011-04-01 15:42:13

CactiNagios

2011-03-25 14:13:07

2011-03-31 16:05:18

Redhat配置nagios

2011-08-22 12:25:02

nagios

2011-03-23 09:07:38

Nagios安裝

2011-03-28 13:27:36

RHELnagios

2011-08-22 15:03:17

nagios
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)