Nagios - check_ping

 

 

 


Usage

 

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

必須參數

-w, --warning=THRESHOLD    warning threshold pair

-c, --critical=THRESHOLD    critical threshold pair

THRESHOLD

<rta> the round trip average travel time (ms) which triggers a WARNING or CRITICAL state
<pl>   the percentage of packet loss to trigger an alarm state.

補充 Settings

-p, --packets=INTEGER    number of ICMP ECHO packets to send (Default: 5)
-s, --show-resolution    show name resolution in the plugin output (DNS & IP)
-t, --timeout=INTEGER:<timeout state>    Seconds before connection times out (default: 10)

i.e.

check_ping -H $ARG1$ -w 3000,40% -c 5000,80% -p 5

PING OK - Packet loss = 40%, RTA = 3.08 ms|...

Creative Commons license icon Creative Commons license icon