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

nagios plugins之 check_http ZT

運(yùn)維 系統(tǒng)運(yùn)維
我們?cè)谟胣agios時(shí),經(jīng)常會(huì)用到它的一個(gè)功能——網(wǎng)絡(luò)信息監(jiān)控,nagios其中有一個(gè)check_http應(yīng)用率非常高,讓我們來(lái)看看他的具體參數(shù)。

nagios下的check_http ZT具體參數(shù)是一個(gè)比較重要的點(diǎn),我?guī)Т蠹襾?lái)看看。.

  //顯示版本

  #./check_http -V

  check_http v2053 (nagios-plugins 1.4.13)

  //-H -u -p

  (不能直接-u寫(xiě)URL,用-u時(shí)要用-H;-u帶的URL可以寫(xiě)全或相對(duì))

 

  1.   #./check_http -H www.****.com  
  2.  

 

  HTTP OK HTTP/1.1 200 OK - 106540 bytes in 1.833 seconds |time=1.833151s;;;0.000000 size=106540B;;;0

 

  1.   #./check_http -H www.****.com -u /url1/url2/index.html  
  2.  
  3.   #./check_http -H www.****.com -u http://www.****.com/url1/url2/index.html  
  4.  
  5.   #./check_http -H www.****.com -p 80 -u http://www.****.com/url1/url2/index.html  
  6.  

 

  //-I

 

  1.   #./check_http -I xxx.xxx.xxx -u /url1/url2/index.html  
  2.  

 

  //-e ; 預(yù)期服務(wù)器返回的***行字串匹配

 

  1.   # ./check_http -H www.laabaa.com -e "200 OK" 
  2.  

 

  HTTP OK HTTP/1.1 200 OK - 106540 bytes in 1.736 seconds |time=1.736245s;;;0.000000 size=106540B;;;0

 

  1.   # ./check_http -H www.laabaa.com -e "200 notOK" 
  2.  

 

  HTTP CRITICAL - Invalid HTTP response received from host: HTTP/1.1 200 OK

  //-s ; 預(yù)期頁(yè)面代碼中的字串

  //-M ;檢測(cè)頁(yè)面的 Last modified時(shí)間,如1m,1h,1d等(分鐘,小時(shí),天);

 

  1.   # ./check_http -I 192.168.100.107 -u /cehq/zhishu.html -M 1m  
  2.  

 

  HTTP CRITICAL - Last modified 1:11:40 ago

  //-m :; 最小頁(yè)面size(bytes):***頁(yè)面size(bytes)

 

  1.   # ./check_http -I 192.168.100.107 -u /cehq/zhishu.html -m 100:200  
  2.  

 

  HTTP WARNING: page size 3466 too large|size=3466B;100;0;0

  //-w和-c;定義warning和critical的告警閥值(單元:seconds)

 

  1.   # ./check_http -I 192.168.100.107 -u /cehq/zhishu.html -w 0.0001  
  2.  

 

  HTTP WARNING: - HTTP/1.1 200 OK - 0.002 second response time |time=0.001646s;0.000100;;0.000000 size=3466B;;;0

 

  1.   # ./check_http -I 192.168.100.107 -u /cehq/zhishu.html -c 0.0001  
  2.  

 

  HTTP CRITICAL: - HTTP/1.1 200 OK - 0.002 second response time |time=0.001778s;;0.000100;0.000000 size=3466B;;;0

  // -N; 檢查一個(gè)頁(yè)面訪(fǎng)問(wèn),為了獲得較好的響應(yīng)時(shí)間,不讀取頁(yè)面體,no-body:

 

  1.   # ./check_http -H www.ce.cn -u /index.shtml -N  
  2.  

 

  HTTP OK: HTTP/1.1 200 OK - 4300 bytes in 0.015 second response time |time=0.014826s;;;0.000000 size=4300B;;;0

  // -a; 以用戶(hù)名密碼訪(fǎng)問(wèn)一個(gè)需認(rèn)證的頁(yè)面:

 

  1.   # ./check_http -I 10.10.10.32 -u /nagios/  
  2.  

 

  HTTP WARNING: HTTP/1.1 401 Authorization Required - 717 bytes in 0.004 second response time |time=0.004006s;;;0.000000 size=717B;;;0

 

  1.   # ./usr/lib/nagios/plugins/check_http -I 192.168.10.2 -u /nagios/ -a nagios:nagios  
  2.  

 

  HTTP OK: HTTP/1.1 200 OK - 911 bytes in 0.005 second response time |time=0.004724s;;;0.000000 size=911B;;;0

  //-t;連接超時(shí)的時(shí)間(default:10seconds)

 

  1.   #./check_http -H laabaa.com  
  2.  

 

  HTTP OK HTTP/1.1 200 OK - 106540 bytes in 1.840 seconds |time=1.839614s;;;0.000000 size=106540B;;;0

 

  1.   #./check_http -H laabaa.com -t 1  
  2.  

 

  CRITICAL - Socket timeout after 1 seconds

  //-v;verbose,show details for command-line debugging

  以上常用的,沒(méi)有post、header等相關(guān)的參數(shù)。

在應(yīng)用nagios時(shí),我們得多關(guān)心下check_http,這個(gè)功能非常好用!

【編輯推薦】

  1. Nagios圖形化Pnp 安裝和配置 ZT
  2. Redhat Nagios安裝詳解
  3. Nagios 配置文件解析
  4. Nagios安裝筆記
  5. Suse 9 安裝Nagios過(guò)程
  6. Nagios擴(kuò)展的主機(jī)和服務(wù)監(jiān)測(cè)

 

責(zé)任編輯:趙鵬 來(lái)源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2011-03-21 15:35:01

Nagiosnagios-plug安裝

2011-03-31 16:05:18

Redhat配置nagios

2011-03-25 17:06:55

Nagios插件plugins

2011-03-22 14:16:17

Nagios安裝

2011-03-28 09:35:12

NagiosPnpZT

2011-04-01 15:39:05

CactiNagios

2010-05-31 12:22:13

Nagios pnp

2010-05-31 11:10:37

Nagios pnp

2011-03-25 17:20:37

NagiosApache

2022-04-26 07:49:23

Nagios開(kāi)源監(jiān)控

2013-07-24 18:02:40

Android開(kāi)發(fā)學(xué)習(xí)Android UIRadio、Check

2011-03-28 16:23:23

nagios開(kāi)源監(jiān)控

2011-03-25 11:05:39

Nagioswindows

2019-09-23 08:35:52

2011-06-10 12:44:09

2020-10-12 14:31:16

HTTP之200還是3

2020-09-30 07:41:28

Redis工具 Redis-full

2011-03-31 16:05:18

Redhat配置nagios

2011-08-22 12:25:02

nagios

2014-06-18 09:25:07

HTTP
點(diǎn)贊
收藏

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