当前位置:网站首页>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向用户发送报警信息。
边栏推荐
- Action after deleting laravel's model
- The supply of chips has turned to excess, and the daily output of Chinese chips has increased to 1billion, which will make it more difficult for foreign chips
- One revolution, two forces, three links: the "carbon reduction" roadmap behind the industrial energy efficiency improvement action plan
- In the era of super video, what kind of technology will become the base?
- 2022 Moonriver全球黑客松优胜项目名单
- 【Hot100】20. 有效的括号
- idea启动Command line is too long问题处理
- The picgo shortcut is amazing. This person thinks exactly the same as me
- [IDM] IDM downloader installation
- 芯片供应转向过剩,中国芯片日产增加至10亿,国外芯片将更难受
猜你喜欢

DO280管理应用部署--pod调度控制

Do280 management application deployment - pod scheduling control

复杂度相关OJ题(LeetCode、C语言、复杂度、消失的数字、旋转数组)

Automatic, intelligent and visual! Deeply convinced of the eight designs behind sslo scheme

ADS算力芯片的多模型架构研究

毕业后5年,我成为了年薪30w+的测试开发工程师

德国iF多项大奖加冕,这副耳机有多强?音珀GTW 270 Hybrid深度评测

She is the "HR of others" | ones character

瑞典公布决定排除华为5G设备,但是华为已成功找到新出路

怎麼用MySQL語言進行行列裝置?
随机推荐
How long will it take to achieve digital immortality? Metacosmic holographic human avatar 8i
Example of vim user automatic command
Telecommuting experience? Let's introduce ourselves ~ | community essay solicitation
[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
Trace the source of drugs and tamp the safety dike
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
Zhou Shaojian, rare
电脑照片尺寸如何调整成自己想要的
【LeetCode】43. 字符串相乘
Uncover the "intelligence tax" of mousse: spend 4billion on marketing, and only 7 invention patents
Introduction to RT thread env tool (learning notes)
自動、智能、可視!深信服SSLO方案背後的八大設計
[200 opencv routines] 216 Draw polylines and polygons
#夏日挑战赛# HarmonyOS canvas实现时钟
u本位合约和币本位合约有区别,u本位合约会爆仓吗
Which MySQL functions are currently supported by tablestore in table storage?
IM即時通訊開發實現心跳保活遇到的問題
There is a difference between u-standard contract and currency standard contract. Will u-standard contract explode
The supply of chips has turned to excess, and the daily output of Chinese chips has increased to 1billion, which will make it more difficult for foreign chips
大龄测试/开发程序员该何去何从?是否会被时代抛弃?