采用zabbix自带的icmp ping即可进行监控:

1、安装fping

2、将fping安装后链接到/usr/sbin/fping下,设置组为zabbix;

3、增加监控项:icmpping[ipaddress]

 

 

Key
 DescriptionReturn valueParametersComments
 
icmpping[<target>,<packets>,<interval>,<size>,<timeout>]
  Host accessibility by ICMP ping. 0 - ICMP ping fails
1 - ICMP pingsuccessful
target - host IP or DNS name
packets - number of packets
interval - time between successive packets in milliseconds
size - packet size in bytes
timeout - timeout in milliseconds
Example:
⇒ icmpping[,4] → if at least one packet of the four is returned, the item will return 1.

See also: table of default values.
 
icmppingloss[<target>,<packets>,<interval>,<size>,<timeout>]
  Percentage of lost packets. Float. target - host IP or DNS name
packets - number of packets
interval - time between successive packets in milliseconds
size - packet size in bytes
timeout - timeout in milliseconds
See also: table of default values.
 
icmppingsec[<target>,<packets>,<interval>,<size>,<timeout>,<mode>]
  ICMP ping response time (in seconds). Float. target - host IP or DNS name
packets - number of packets
interval - time between successive packets in milliseconds
size - packet size in bytes
timeout - timeout in milliseconds
mode - one of min, max, avg (default)
If host is not available (timeout reached), the item will return 0.

See also: table of default values.