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

Nagios系統(tǒng)下nagios.cfg配置說(shuō)明

運(yùn)維 系統(tǒng)運(yùn)維
Nagios系統(tǒng)下nagios.cfg配置文件說(shuō)明:Nagios是一個(gè)監(jiān)視系統(tǒng)運(yùn)行狀態(tài)和網(wǎng)絡(luò)信息的監(jiān)視系統(tǒng)。Nagios能監(jiān)視所指定的本地或遠(yuǎn)程主機(jī)以及服務(wù),同時(shí)提供異常通功能等。本文講述的是Nagios系統(tǒng)下nagios.cfg配置說(shuō)明。

  nagios系統(tǒng)nagios.cfg 配置說(shuō)明

  1、aggregate_status_updates = <0/1> 統(tǒng)計(jì)狀態(tài)更新選項(xiàng):0不更新;1更新

  2、status_update_interval= 狀態(tài)更新間隔:秒

  3、enable_notifications = <0/1> 是否通知:0不通知;1通知

  4、execute_service_checks = <0/1> 檢查服務(wù)選項(xiàng):0不檢查;1檢查

  5、accept_passive_service_checks=<0/1> 是否接受被動(dòng)服務(wù)檢查:0不檢查;1檢查

  6、enable_event_handlers=<0/1> 事件處理:0不檢查;1檢查

  7、log_rotation_method=

  log輪循:

  n = None (don't rotate the log - this is the default)

  h = Hourly (rotate the log at the top of each hour)

  d = Daily (rotate the log at midnight each day)

  w = Weekly (rotate the log at midnight on Saturday)

  m = Monthly (rotate the log at midnight on the last day of the month)

  8、check_external_commands=<0/1>

  9、service_check_timeout = 如果服務(wù)檢查時(shí)間超過(guò)了所定義的時(shí)間,顯示CRITICAL狀態(tài)。

  10、host_check_timeout= 如果主機(jī)檢查時(shí)間超過(guò)了所定義的時(shí)間,顯示CRITICAL狀態(tài)。

  11、event_handler_timeout= 事件處理最長(zhǎng)時(shí)間,超出后Warning記錄到log中。

  12、process_performance_data=<0/1> 性能監(jiān)測(cè)選項(xiàng):0不檢查;1檢查

  13、check_service_freshness=<0/1> 刷新服務(wù)選項(xiàng):0不檢查;1檢查

  14、illegal_object_name_chars= 不規(guī)范定義字符

  一、主要包括的定義文件有: Services、Hosts、Host Groups、Contacts、Contact Groups、Commands、Time Periods、Service Escalations、Service Dependencies、Host Escalations、Host Dependencies、Hostgroup Escalations

  1.CGI.cfg

  1)、main_config_file=/usr/local/nagios/etc/nagios.cfg Nagios主配置文件

  2)、physical_html_path=/usr/local/nagios/share web頁(yè)面所在路徑

  3)、use_authentication=<0/1> 用戶驗(yàn)證選項(xiàng):0不驗(yàn)證;1驗(yàn)證

  2.配置驗(yàn)證

  1)、vi httpd.conf,添加下面的內(nèi)容到httpd.conf文件中

  1.   AllowOverride AuthConfig  
  2.  
  3.   order allow,deny  
  4.  
  5.   allow from all  
  6.  
  7.   Options ExecCGI  
  8.  

  2)、如果還需要對(duì)html頁(yè)面也進(jìn)行驗(yàn)證,需要vi httpd.conf,添加下面的內(nèi)容

  1.   AllowOverride AuthConfig  
  2.  
  3.   order allow,deny  
  4.  
  5.   allow from all  
  6.  

  3)、然后在cgi所在目錄新增.htaccess文件,文件內(nèi)容見(jiàn)下面

  1.   AuthName "Nagios Access"  
  2.  
  3.   AuthType Basic  
  4.  
  5.   AuthUserFile /usr/local/nagios/etc/htpasswd.users  
  6.  
  7.   require valid-user  
  8.  

  4)、設(shè)置驗(yàn)證用戶賬號(hào)

  1.   htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin  
  2.  

  5)、默認(rèn)權(quán)限

【編輯推薦】

Nagios飛信linux短信報(bào)警腳本配置

Nagios安裝記錄

如何用Nagios監(jiān)控遠(yuǎn)程系統(tǒng)

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

2011-04-01 16:30:49

Nagios

2011-03-21 11:14:22

LinuxNagios

2011-03-22 13:37:29

Nagios安裝

2011-03-31 15:31:06

Redhat配置nagios

2011-03-31 16:05:18

Redhat配置nagios

2011-08-22 12:25:02

nagios

2011-03-21 15:42:14

LinuxNagios

2011-03-25 15:37:17

Solarisnagios

2011-11-08 21:58:01

Nagios 配置 流

2011-03-25 16:49:33

nagios服務(wù)

2011-03-25 10:37:17

2010-05-31 11:10:37

Nagios pnp

2011-03-21 09:17:06

Nagios

2010-05-31 12:22:13

Nagios pnp

2011-03-31 16:05:18

Redhat配置nagios

2014-08-06 15:25:36

LinuxNagios

2011-03-24 09:15:54

Nagios飛信

2011-03-22 10:10:21

Nagios配置

2011-03-28 11:03:09

配置Nagios

2013-06-08 16:55:22

Nagios
點(diǎn)贊
收藏

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