8000 GitHub - colourful987/LogMonitor: monitor specified log file, if occured keywords you setting, sendmail or other method to report.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

monitor specified log file, if occured keywords you setting, sendmail or other method to report.

License

Notifications You must be signed in to change notification settings

colourful987/LogMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LogMonitor

monitor specified log file, if occured keywords you setting, sendmail or other method to report.

How to use

在当前目录下新建一个 monitoritems.conf 配置文件,内容按照下面规范添加。可自行修改脚本动态配置。

[DEFAULT]
# 监控日志路径
log_file_path=/path/to/logfile
# 监控频率,每 x 秒触发一次
monitor_interval=60

[item1]
# 监控关键字(不要加引号,可传入正则表达式)
keyword =Unable to send to CLOSED client
# 阈值
threshold = 1
# 等级
level = info
# 描述
description = 报警关键字对应的描述信息

[item2]
# 监控关键字(不要加引号,可传入正则表达式)
keyword = 其他关键字或者正则表达式
# 阈值
threshold = 2
# 等级
level = error
# 描述
description = 报警关键字对应的描述信息

About

monitor specified log file, if occured keywords you setting, sendmail or other method to report.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0