当前位置:网站首页>Zabbix2.2监控之系统及应用日志监控报警
Zabbix2.2监控之系统及应用日志监控报警
2022-07-01 16:12:00 【星哥玩云】
前面介绍了zabbix的系统监控及报警设置(见 http://www.linuxidc.com/Linux/2014-06/103776.htm),zabbbix还可以用于支持/不支持翻转的日志文件的集中监控与分析。比如系统日志/var/log/message /var/log/secure等。当一个日志文件包含特定的字符或者字符模式时,zabbix向用户发送报警信息。
话不多说开始操作,选择 Configuration-templates-Template OS Linux模板,或者是自定义正在使用的模板,选择item-create item
有几个地方需要确认:
type:一顶要选择zabbix agent active
key:log[文件名个格式:日志文件路径,,,,]
举个例子:
log[/var/log/message] log[/var/log/secure]等
配置完成之后点save。配置正确的话,可以看到状态是enable的。
然后到monitoring-lastdata就可以看到有日志的数据了。
最后可以看到日志
当然,如果有其他需要,也可以添加其他的日志选项。
日志监控添加到这里就完成了,那么如何设置报警呢,接着往下看
首先找到刚才添加的item,会发现前面有个文本模样的符号,点击出现create trigger
根据自己需要,配置报警选项
完成之后,当日志中出现特定的字符或者字符模式时,zabbix向用户发送报警信息。
边栏推荐
- IM即時通訊開發實現心跳保活遇到的問題
- Factory high-precision positioning management system, digital safety production management
- How to adjust the size of computer photos to what you want
- 【LeetCode】43. 字符串相乘
- 【php毕业设计】基于php+mysql+apache的教材管理系统设计与实现(毕业论文+程序源码)——教材管理系统
- 【Hot100】20. 有效的括号
- 实现数字永生还有多久?元宇宙全息真人分身#8i
- [200 opencv routines] 216 Draw polylines and polygons
- Go language learning notes - Gorm use - table addition, deletion, modification and query | web framework gin (VIII)
- 最新NLP赛事实践总结!
猜你喜欢
2023届春招实习-个人面试过程和面经分享
Uncover the "intelligence tax" of mousse: spend 4billion on marketing, and only 7 invention patents
全面看待企业数字化转型的价值
【Hot100】19. Delete the penultimate node of the linked list
[SQL statement] Why do you select two Shanghai and query different counts here? I want it to become a Shanghai, and count only displays a sum
【LeetCode】43. String multiplication
毕业后5年,我成为了年薪30w+的测试开发工程师
高端程序员上班摸鱼指南
2022 Moonriver global hacker song winning project list
C#/VB. Net merge PDF document
随机推荐
ssm框架原理
Comment win11 définit - il les permissions de l'utilisateur? Win11 comment définir les permissions de l'utilisateur
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
搜索框和按钮缩放时会有缝隙的bug
AVL balanced binary search tree
Win11如何设置用户权限?Win11设置用户权限的方法
process. env. NODE_ ENV
智慧党建: 穿越时空的信仰 | 7·1 献礼
[open source data] open source data set for cross modal (MRI, Meg, eye movement) human spatial memory research based on virtual reality scenes
The latest NLP game practice summary!
Summer Challenge harmonyos canvas realize clock
最新NLP赛事实践总结!
How to adjust the size of computer photos to what you want
大龄测试/开发程序员该何去何从?是否会被时代抛弃?
STM32F1与STM32CubeIDE编程实例-PWM驱动蜂鸣器生产旋律
使用腾讯云搭建图床服务
Hardware development notes (9): basic process of hardware development, making a USB to RS232 module (8): create asm1117-3.3v package library and associate principle graphic devices
【Hot100】19. 删除链表的倒数第 N 个结点
How to write good code - Defensive Programming Guide
Pocket Network为Moonbeam和Moonriver RPC层提供支持