摘要: 在做监控的时候,有可能会发生agent挂掉,无法采取到告警的时候。 这个时候可能就无法发送告警了 # 解决方法 这个时候需要用《nodata》触发器 《nodata触发器》表达式参考 {docker container check health:net.tcp.listen[{#TCP_PORT}] 阅读全文
posted @ 2021-03-29 21:40 Hello_worlds 阅读(1091) 评论(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 阅读(135) 评论(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 阅读(121) 评论(0) 推荐(0)
摘要: 目录 标题1 标题2 标题3 标题4 阅读全文
posted @ 2021-02-18 16:26 Hello_worlds 阅读(21) 评论(0) 推荐(0)
摘要: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" # 可以选用清华源,相对快一些 # 参考文档 https://zhuanlan.zhihu.com/p/111014448 阅读全文
posted @ 2021-01-07 10:15 Hello_worlds 阅读(107) 评论(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 阅读(202) 评论(0) 推荐(0)
摘要: # 加载docker源 wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo# 把软件仓库地址替换为 TUNA: sed -i 's+download.docke 阅读全文
posted @ 2020-12-23 18:40 Hello_worlds 阅读(92) 评论(0) 推荐(0)
摘要: 虚拟机:硬件CPU需要支持VT虚拟化,模拟计算机硬件,走正常的开机启动 容器:不需要硬件CPU的支持,共用宿主机内核 容器优势:启动快,性能高,损耗少,轻量级 阅读全文
posted @ 2020-12-23 18:00 Hello_worlds 阅读(182) 评论(0) 推荐(0)
摘要: 容器是隔离的环境中运行的一个进程,如果进程结束,容器就会停止。容器 == 进程 容器隔离环境的特点:拥有的ip地址,系统文件,主机名,进程管理 阅读全文
posted @ 2020-12-23 17:30 Hello_worlds 阅读(343) 评论(0) 推荐(0)
摘要: # 下载依赖包yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-de 阅读全文
posted @ 2020-04-26 17:59 Hello_worlds 阅读(143) 评论(0) 推荐(0)