Last active
September 5, 2019 04:09
-
-
Save nurhambali/4231a197ab47800e3333ef99873ce75b to your computer and use it in GitHub Desktop.
ICMP or PING on zabbix agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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