成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

nagios的check_ping插件學(xué)習(xí)

(nagios插件:nagios-plugins-1.4.12/plugins/check_ping.c)

站在用戶(hù)的角度思考問(wèn)題,與客戶(hù)深入溝通,找到西區(qū)網(wǎng)站設(shè)計(jì)與西區(qū)網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶(hù)體驗(yàn)好的作品,建站類(lèi)型包括:成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、域名申請(qǐng)、虛擬主機(jī)、企業(yè)郵箱。業(yè)務(wù)覆蓋西區(qū)地區(qū)。

[root@datacenter libexec]# ./check_ping --help

check_ping v1.4.15 (nagios-plugins 1.4.15)

Copyright (c) 1999 Ethan Galstad <>

Copyright (c) 2000-2007 Nagios Plugin Development Team

<>

Use ping to check connection statistics for a remote host.

Usage:

check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%

[-p packets] [-t timeout] [-4|-6]

Options:

-h, --help

Print detailed help screen

-V, --version

Print version information

-4, --use-ipv4

Use IPv4 connection

-6, --use-ipv6

Use IPv6 connection

-H, --hostname=HOST

host to ping

-w, --warning=THRESHOLD

warning threshold pair

-c, --critical=THRESHOLD

critical threshold pair

-p, --packets=INTEGER

number of ICMP ECHO packets to send (Default: 5)

-L, --link

show HTML in the plugin output (obsoleted by urlize)

-t, --timeout=INTEGER

Seconds before connection times out (default: 10)

THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel

time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the

percentage of packet loss to trigger an alarm state.

This plugin uses the ping command to probe the specified host for packet loss

(percentage) and round trip average (milliseconds). It can produce HTML output

linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in

the contrib area of the downloads section at

Send email to if you have questions

regarding use of this software. To submit patches or suggest improvements,

send email to

[root@datacenter libexec]#

用法:

Usage: check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%

[-p packets] [-t timeout] [-L] [-4|-6]

具體如下:

-H     主機(jī)地址

-w     WARNING 警告狀態(tài):   響應(yīng)時(shí)間(毫秒),丟包率 (%)   閥值

-c     CRITICAL 危險(xiǎn)狀態(tài):  響應(yīng)時(shí)間(毫秒),丟包率 (%)   閥值

-p     發(fā)送的包數(shù)       默認(rèn)5個(gè)包

-t     超時(shí)時(shí)間         默認(rèn)10秒

-4|-6                   使用ipv4|ipv6 地址     默認(rèn)ipv4

示例:

復(fù)制代碼 代碼如下:

./check_ping -H 8.8.8.8 -w 200,20% -c 300,50% -p 3 -t 2

-H 目標(biāo)主機(jī)

-w 延時(shí)200丟包20%

-c 延時(shí)300丟包50%

延時(shí)有3個(gè)范圍

1. 延時(shí) 小于 200

2. 延時(shí) 在 200 - 300 范圍內(nèi)

3. 延時(shí) 大于 300

小于則輸出 OK 正常

范圍內(nèi)則輸出 WARNING 警告

大于則輸出 CRITICAL 宕機(jī)

1、OK 正常

復(fù)制代碼 代碼如下:

[root@204 plugins]# ./check_ping -H 8.8.8.8 -w 200,20% -c 300,50% -p 3 -t 2

PING OK - Packet loss = 0%, RTA = 96.45 ms|rta=96.449997ms;200.000000;300.000000;0.000000 pl=0%;20;50;0

2、WARNING 警告

復(fù)制代碼 代碼如下:

[root@204 plugins]# ./check_ping -H 8.8.8.8 -w 100,20% -c 200,50% -p 3 -t 2

PING WARNING - Packet loss = 0%, RTA = 106.00 ms|rta=106.003998ms;100.000000;200.000000;0.000000 pl=0%;20;50;0

3、CRITICAL 宕機(jī)

復(fù)制代碼 代碼如下:

[root@204 plugins]# ./check_ping -H 8.8.8.8 -w 50,20% -c 100,50% -p 3 -t 2

PING CRITICAL - Packet loss = 0%, RTA = 128.41 ms|rta=128.410995ms;50.000000;100.000000;0.000000 pl=0%;20;50;0

網(wǎng)站題目:nagios的check_ping插件學(xué)習(xí)
標(biāo)題來(lái)源:http://jinyejixie.com/article20/jjecjo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、ChatGPT服務(wù)器托管、域名注冊(cè)網(wǎng)站制作、響應(yīng)式網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

微信小程序開(kāi)發(fā)
黑山县| 安宁市| 东明县| 江山市| 年辖:市辖区| 莱芜市| 阿图什市| 九龙县| 思南县| 尚义县| 荃湾区| 哈密市| 肇庆市| 龙岩市| 佳木斯市| 琼中| 通海县| 义马市| 凌源市| 凯里市| 和顺县| 阳新县| 同仁县| 南安市| 河池市| 安西县| 苏尼特右旗| 巍山| 葫芦岛市| 沁阳市| 乐山市| 平遥县| 浑源县| 台中县| 保定市| 宝清县| 河津市| 涞水县| 买车| 牟定县| 陇南市|