03 2021 档案

摘要:在做监控的时候,有可能会发生agent挂掉,无法采取到告警的时候。 这个时候可能就无法发送告警了 # 解决方法 这个时候需要用《nodata》触发器 《nodata触发器》表达式参考 {docker container check health:net.tcp.listen[{#TCP_PORT}] 阅读全文
posted @ 2021-03-29 21:40 Hello_worlds 阅读(973) 评论(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 阅读(126) 评论(0) 推荐(0) 编辑
摘要:find /lib/modules -name "virtio_net.ko" | grep `uname -r` | xargs insmod modprobe virtio_net 阅读全文
posted @ 2021-03-05 10:57 Hello_worlds 阅读(107) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示