NAME

Monitoring::Sneck::Checks::ping - checks packet loss and round trip time

VERSION

Version 0.0.1

SYNOPSIS

ping_gw|perl:ping -H 192.0.2.1
ping_www|perl:ping -H www.example.org -P tcp --port 443 -w 50,20% -c 200,60%

DESCRIPTION

Pings a host through Net::Ping. ICMP needs root, which sneck often is not when run by snmpd, so --protocol tcp or udp may be needed. For tcp, a refused connection still counts as a reply, as the host answered.

Each ping gets the timeout split between the packets.

OPTIONS

- -H, --hostname :: The host. Required.

- -p, --packets :: How many to send. Default :: 5

- -P, --protocol :: icmp, tcp, or udp. Default :: icmp

- --port :: The port for tcp or udp. Default :: Net::Ping's, 7 for echo

- -w, --warning :: "ms,loss%", the round trip average and packet loss at which it is WARNING. Default :: 100,20%

- -c, --critical :: The same, for CRITICAL. Default :: 500,60%

METHODS

check

Does the check.