zabbix agent 隔离网络ICMP监控实现

Published on with 0 views and 0 comments

Agent 脚本:

#!/bin/bash
ping -c 1 -W 2 172.28.6.1  > /dev/null 2>&1
if [ $? -eq 0 ]
then
echo 0
else
echo 1
fi

Agent 配置文件:

UserParameter=ping.storage,/bin/bash /etc/zabbix/zabbix_agentd.d/pingstorage.sh


标题:zabbix agent 隔离网络ICMP监控实现
作者:cuijianzhe
地址:https://cjzshilong.cn/articles/2023/11/19/1700395999304.html