当前位置:网站首页>Zabbix: map collected values to readable statements
Zabbix: map collected values to readable statements
2022-07-27 07:28:00 【TechForGeek】
Zabbix It is an open source monitoring system commonly used in operation and maintenance . stay Zabbix in , Collect data from the monitored host , Need to create Item.Zabbix Built in many different types Item, frequently-used Item The type is Zabbix agent, This type of Item Through the... Deployed on the monitored host Zabbix agent Communication to collect data .
Zabbix agent Type of Item A lot of support Item keys, Different Item keys Used to collect different data . for example agent.hostname Used to collect the hostname of the monitored host ,proc.mem Used to collect the memory usage of the process . All those who support Item keys Refer to the corresponding Zabbix file [1].
Zabbix agent Type of Item keys in , Many return only one value , Use different values to represent the different states of the monitored host . for example net.tcp.port Used to check whether the specified port of the monitored host is open , It returns a number 0 or 1: 0 Indicates that you cannot connect to the specified port ,1 Indicates that you can connect to the specified port .
For different states represented by numerical values Item, stay Zabbix Of Latest data When viewing the collected data in , Sometimes we can't remember clearly , What do different values mean , You have to look it up Zabbix file . If you can map values into human readable statements , That would be much more convenient .
Actually ,Zabbix This function is already supported , Namely Zabbix Of Value mapping[2], It can be Numeric (unsigned), Numeric (float) and Character The value of type maps to human readable statements .
To use Value mapping, First you need to create a Value map, The operation steps are as follows :
Enter into Zabbix Console , choice Administration => Genernal
stay General In the drop-down list in the upper right corner of the page , choice Value mapping
stay Value mapping The top right corner of the page , choice Create value map
Fill in the name and the required Mappings after , Click on Add create
Here is what I created Value map An example of :

after , Creating Item ( Or modify the existing Item) when , Set up Show value The value of the field is the one you just created Value map that will do :

After setting up , stay Zabbix Of Latest data View the corresponding Item, You can see that the collected values have been mapped into human readable sentences :
Reference resources :
[1]: https://www.zabbix.com/documentation/4.0/en/manual/config/items/itemtypes/zabbix_agent
[2]: https://www.zabbix.com/documentation/4.0/en/manual/config/items/mapping
As always, , If you have any questions about the content of the article , Or find any mistakes in the article , You can tell me by leaving a message ; If you like my article , Welcome to my WeChat official account. Tech For Geek.

边栏推荐
- C# Winfrom 常用功能整合-2
- Use of tigervnc
- 查看服务器重启前的 dmesg 日志
- Li Mu hands-on learning, in-depth learning, V2 transformer and code implementation
- Shell系统学习之Shell条件测试,判断语句和运算符
- Linear table -- stack and queue
- Demonstrate the use of foreign keys with Oracle
- The possibility of metauniverse from the perspective of technical principles: how Omniverse "built" Mars
- Analysis of memory structure of C program code
- Quartus: an error is reported when adding a.V file to someone else's project
猜你喜欢

Using loops to process data in tables in kettle

闭散列和开散列解决哈希冲突

Using docker in MAC to build Oracle database server
![[wsl2] configure the USB camera connecting the USB device and using the host](/img/03/7ebc7eebeda1598c8f4fdd1e9188c7.png)
[wsl2] configure the USB camera connecting the USB device and using the host

vlan间路由(讲解+验证)

VLAN trunk实验

Which C4d cloud rendering platform to cooperate with?

杂谈:跟女儿聊为啥要学好文化课

Port forwarding summary

Use the PIP command to switch between different mirror sources
随机推荐
Esp8266 (esp-12f) third party library use -- sparkfun_ Apds9960 (gesture recognition)
Use the PIP command to switch between different mirror sources
Simple rotation chart
docker安装MySQL8.0.28
js正则表达式实现每三位数字加一个逗号
oracle清理含有引用分区的表的数据库磁盘空间
Pytorch notes: td3
drawImage方法第一次调用不显示图片的解决方式
利用 Amazon DynamoDB 和 Amazon S3 结合 gzip 压缩,最大化存储玩家数据
UI gesture actions of uiautomator common classes
(2022 Hangdian multi school III) 1009.package delivery (greedy)
How to submit C4d animation to cloud rendering farm for fast rendering?
优炫数据库主要线程有哪些?
vlan间路由(讲解+验证)
(2022 Niuke multi school III) j-journey (Dijkstra)
SQLite 常用功能整合
海康h9摄像头用xshell无法连接(没有启用ssh)
The difference between critical section (the code that accesses critical resources in each thread) and mutex (mutex between processes, shared memory, virtual address)
ShowDoc漏洞学习——CNVD-2020-26585(任意文件上传)
Confluence漏洞学习——CVE-2021-26084/85,CVE-2022-26134漏洞复现