03 2021 档案
摘要:在做监控的时候,有可能会发生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
阅读全文
摘要:find /lib/modules -name "virtio_net.ko" | grep `uname -r` | xargs insmod modprobe virtio_net
阅读全文