标签:tee src 快速 lock l命令 ica 测试 方便 service
lite-monitor 一款基于shell命令的监控系统,可以根据项目中输出的日志定时输出或者统计输出,并发送钉钉机器人报警消息。
lite-monitor能做什么:
awk等命令自定义实现。lite-monitor的特点:
首先需要安装 JDK1.8或者以上并保证网络通畅。
git clone https://github.com/chentiefeng/lite-monitor.git
cd lite-monitor
mvn -Dmaven.test.skip=true clean package
mkdir ~/lite-monitor-server
cp target/lite-monitor-0.0.1-SNAPSHOT.jar ~/lite-monitor-server
cd ~/lite-monitor-server
nohup java -jar lite-monitor-0.0.1-SNAPSHOT.jar 2>&1 &
日志文件位置:
~/lite-monitor-server/logs/m.log。
浏览器输入地址http://xx.xx.xx.xx:10003/打开主页。

我要监控本地机器(测试方便)的indicator-service进程(本来就没有)。
新增。

确认-立即执行(测试一下)。

钉钉消息。

我要监控本地机器(可以替换其他机器)的lite-monitor服务的近1分钟出现frequency关键字的日志数量,超过2个就报警,钉钉展示10条消息。
复制,改改信息。

确认-立即执行(测试一下),钉钉消息。

本文来自chentiefeng的博客
标签:tee src 快速 lock l命令 ica 测试 方便 service
原文地址:https://www.cnblogs.com/dongfangqiezi/p/12085146.html