随笔分类 - zabbix
摘要:在做监控的时候,有可能会发生agent挂掉,无法采取到告警的时候。 这个时候可能就无法发送告警了 # 解决方法 这个时候需要用《nodata》触发器 《nodata触发器》表达式参考 {docker container check health:net.tcp.listen[{#TCP_PORT}]
阅读全文
摘要:#!/bin/bash ethn=$1 while true do RX_pre=$(cat /proc/net/dev | grep $ethn | sed 's/:/ /g' | awk '{print $2}') TX_pre=$(cat /proc/net/dev | grep $ethn
阅读全文
摘要:# 获取证书过期时间脚本 cat /etc/zabbix/scripts/check-cert-expire.sh #!/bin/bash host=$1 port=$2 end_date=`/usr/bin/openssl s_client -servername $host -host $hos
阅读全文

浙公网安备 33010602011771号