Skip to content

Instantly share code, notes, and snippets.

@nurhambali
Last active September 5, 2019 04:09
Show Gist options
  • Save nurhambali/4231a197ab47800e3333ef99873ce75b to your computer and use it in GitHub Desktop.
Save nurhambali/4231a197ab47800e3333ef99873ce75b to your computer and use it in GitHub Desktop.
ICMP or PING on zabbix agent
### Centos
yum install fping -y
cat >/etc/zabbix/zabbix_agentd.conf.d/icmp.conf << EOF
Timeout=30
UserParameter=icmp[*],fping -t 300 $1 | grep alive | wc -l
EOF
### Ubuntu
apt update
apt install fping -y
cat >/etc/zabbix/zabbix_agentd.conf.d/icmp.conf << EOF
Timeout=30
UserParameter=icmp[*],fping -t 300 $1 | grep alive | wc -l
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment