随笔分类 -  zabbix

摘要:在做监控的时候,有可能会发生agent挂掉,无法采取到告警的时候。 这个时候可能就无法发送告警了 # 解决方法 这个时候需要用《nodata》触发器 《nodata触发器》表达式参考 {docker container check health:net.tcp.listen[{#TCP_PORT}] 阅读全文
posted @ 2021-03-29 21:40 Hello_worlds 阅读(1084) 评论(0) 推荐(0)
摘要:#!/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 阅读全文
posted @ 2021-03-10 17:58 Hello_worlds 阅读(131) 评论(0) 推荐(0)
摘要:# 获取证书过期时间脚本 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 阅读全文
posted @ 2021-01-06 19:48 Hello_worlds 阅读(194) 评论(0) 推荐(0)