采用zabbix自带的icmp ping即可进行监控:
1、安装fping
2、将fping安装后链接到/usr/sbin/fping下,设置组为zabbix;
3、增加监控项:icmpping[ipaddress]
Key | ||||
---|---|---|---|---|
Description | Return value | Parameters | Comments | |
icmpping[<target>,<packets>,<interval>,<size>,<timeout>] | ||||
Host accessibility by ICMP ping. | 0 - ICMP ping fails1 - ICMP pingsuccessful | target - host IP or DNS namepackets - number of packetsinterval - time between successive packets in millisecondssize - packet size in bytestimeout - 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 . | |
icmppingloss[<target>,<packets>,<interval>,<size>,<timeout>] | ||||
Percentage of lost packets. | Float. | target - host IP or DNS namepackets - number of packetsinterval - time between successive packets in millisecondssize - packet size in bytestimeout - timeout in milliseconds | See also: table of . | |
icmppingsec[<target>,<packets>,<interval>,<size>,<timeout>,<mode>] | ||||
ICMP ping response time (in seconds). | Float. | target - host IP or DNS namepackets - number of packetsinterval - time between successive packets in millisecondssize - packet size in bytestimeout - timeout in millisecondsmode - one of min, max, avg (default) | If host is not available (timeout reached), the item will return 0.See also: table of . |