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

Redhat配置nagios-郵件監(jiān)控

系統(tǒng) Linux
Redhat配置nagios:Nagios是監(jiān)控系統(tǒng),Nagios能監(jiān)控所指定的本地或遠(yuǎn)程主機(jī)以及服務(wù),同時(shí)提供異常通知功能等。這篇文章講述的是Redhat配置nagios,郵件監(jiān)控

  郵件監(jiān)控

        本文講述的是:Redhat配置nagios。返回大綱。

  郵件監(jiān)控可以配置sendmail,這里還是用mail命令完成。首先是編輯nagios.cfg,以前已經(jīng)設(shè)置了,這里看看就行了

  1.   [root@localhost objects]# vi /usr/local/nagios/etc/nagios.cfg  
  2.  
  3.   cfg_file=/usr/local/nagios/etc/objects/contacts.cfg  
  4.  

  這里要注意的是如果在這設(shè)置間隔和期限等是在整個(gè)nagios生效的,所有的客戶(hù)端都是按照這個(gè)配置,如果想單獨(dú)設(shè)置在各個(gè)cfg中單獨(dú)配置,一會(huì)會(huì)講。整個(gè)cfg內(nèi)容沒(méi)什么說(shuō)的了,contact_name和email,還有就是contactgroup_name在所有的地方都是設(shè)置這個(gè)名字,不要寫(xiě)錯(cuò),member可以設(shè)置多個(gè)用”,”隔開(kāi),

  1.   [root@localhost objects]# vi contacts.cfg  
  2.  
  3.   define contact{  
  4.  
  5.   contact_name user1  
  6.  
  7.   alias Nagios Admin  
  8.  
  9.   service_notification_period 24x7  
  10.  
  11.   host_notification_period 24x7  
  12.  
  13.   service_notification_options w,u,c,r  
  14.  
  15.   host_notification_options d,r  
  16.  
  17.   service_notification_commands notify-by-email  
  18.  
  19.   host_notification_commands host-notify-by-email  
  20.  
  21.   email xxxx@163.com  
  22.  
  23.   pager 13800138000  
  24.  
  25.   }  
  26.  
  27.   define contactgroup{  
  28.  
  29.   contactgroup_name admins  
  30.  
  31.   alias Nagios Administrators  
  32.  
  33.   members user1  
  34.  
  35.   }  
  36.  

  notify-by-email和host-notify-by-email在command.cfg中定義了

  這個(gè)就是在服務(wù)中單獨(dú)設(shè)置,就不多講了

  1.   define service{  
  2.  
  3.   use generic-service ; Name of service template to use  
  4.  
  5.   host_name test_nrpe  
  6.  
  7.   service_description apache  
  8.  
  9.   is_volatile 0 #類(lèi)似聲音警告功能關(guān)閉  
  10.  
  11.   check_period 24x7 #監(jiān)控期限為24X7  
  12.  
  13.   max_check_attempts 1 #最大重試次數(shù)  
  14.  
  15.   normal_check_interval 1 #標(biāo)準(zhǔn)檢測(cè)時(shí)間間隔 1分鐘  
  16.  
  17.   retry_check_interval 1 #重試時(shí)間間隔  
  18.  
  19.   contact_groups admins #聯(lián)系組  
  20.  
  21.   notification_options w,u,c,r # w,u,c,r 發(fā)生這四種情況時(shí),進(jìn)行通告。  
  22.  
  23.   notification_interval 960 # 通告間隔  
  24.  
  25.   notification_period 24x7 #通告過(guò)期時(shí)間  
  26.  
  27.   check_command check_http!100.0,20%!500.0,60%  
  28.  
  29.   }  
  30.  

 【編輯推薦】

Nagios使用飛信Robot發(fā)送報(bào)警短信

配置nagios客戶(hù)端

Nagios的安裝配置記錄

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

2011-03-31 16:05:18

Redhat配置nagios

2011-03-31 16:10:47

Redhat配置nagios

2011-03-31 16:11:22

Redhat配置nagios

2011-03-31 15:31:05

Redhat配置nagios

2011-03-31 16:09:21

Redhat配置nagios

2011-03-31 16:10:48

Redhat配置nagios

2011-03-31 16:05:18

Redhat配置nagios

2011-03-31 16:45:39

Redhat配置nagios

2011-03-31 15:31:06

Redhat配置nagios

2011-03-23 13:44:31

配置NDOUtils系統(tǒng)

2011-03-31 16:05:15

Redhat配置nagios

2011-03-23 13:32:14

配置Nagios系統(tǒng)

2011-04-01 10:53:43

2011-03-23 14:47:25

Nagios監(jiān)控

2011-03-31 15:31:06

Redhat配置nagios

2011-03-22 09:07:13

Nagios監(jiān)控Linux

2011-03-28 09:21:08

RedhatNagios

2011-07-01 10:26:15

NagiosWindows Ser

2009-03-11 18:49:36

LinuxNagios運(yùn)維監(jiān)控

2011-03-25 14:40:33

Nagios監(jiān)控
點(diǎn)贊
收藏

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