当前位置:网站首页>Add ZABBIX calculation type itemcalculated items
Add ZABBIX calculation type itemcalculated items
2022-07-03 14:17:00 【Brother Xing plays with the clouds】
adopt Redis Self contained info Command can monitor keyspace_hits and keyspace_misses These two values , however redis The hit rate of cannot be obtained directly , Can pass zabbix Of calculated items Implementation monitoring redis shooting
https://www.zabbix.com/documentation/2.2/manual/config/items/itemtypes/calculated
zabbix from 1.8.1 Start to support this function
In New item when , Need to choose type by Calculated.
stay Key Fill in the new column key The name of
stay Formula Fill in new key The calculation expression of
func(<key>|<hostname:key>,<parameter1>,<parameter2>,...)
func yes https://www.zabbix.com/documentation/2.2/manual/appendix/triggers/functions Functions supported in the document
key It is other things that need to be used item, Better use double quotation marks "" take key Value expansion , If key If there are quotation marks in the middle of the value, you need to use \ escape .
parameter Other parameters that need to be used
Example :
1.zabbix Calculate the ratio of the latest free disk space to the total disk space .
100*last("vfs.fs.size[/,free]",0)/last("vfs.fs.size[/,total]",0)
2. Calculate the average 10 Within minutes zabbix Processed values
avg("Zabbix Server:zabbix[wcache,values]",600)
Calculation type item, If the acquisition interval is too long, it will affect zabbix server Performance of
3. Calculation eth0 Total bandwidth
last("net.if.in[eth0,bytes]",0)+last("net.if.out[eth0,bytes]",0)
4. Calculate the proportion of inlet flow
100*last("net.if.in[eth0,bytes]",0)/(last("net.if.in[eth0,bytes]",0)+last("net.if.out[eth0,bytes]",0))
5.
last("grpsum[\"video\",\"net.if.out[eth0,bytes]\",\"last\",\"0\"]",0) / last("grpsum[\"video\",\"nginx_stat.sh[active]\",\"last\",\"0\"]",0)
After testing, if Formula There are macro definitions in the expression, such as {#REDISPORT}, The whole expression needs parentheses () Expansion . So when adding an expression, you can use the whole expression () Expansion , Whether or not there is a macro definition .
边栏推荐
- 28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
- Analysis of the characteristics of page owner
- Leetcode(4)——尋找兩個正序數組的中比特數
- concat和concat_ws()区别及group_concat()和repeat()函数的使用
- Too many files with unapproved license
- 编程语言:类型系统的本质
- Global event bus
- [Jilin University] information sharing of postgraduate entrance examination and re examination
- Facebook 如何将 Instagram 从 AWS 搬到自己的服务器
- Exercise 10-2 recursive factorial sum
猜你喜欢
Exercise 10-2 recursive factorial sum
jvm-对象生命周期
allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取
556. 下一个更大元素 III
QT learning 19 standard dialog box in QT (top)
Article content typesetting and code highlighting
QT learning 25 layout manager (4)
[email protected] (FE) | glycyrrhetinic acid modified metal organ"/>
Formation of mil-100 (FE) coated small molecule aspirin [email protected] (FE) | glycyrrhetinic acid modified metal organ
编程语言:类型系统的本质
Leetcode(4)——寻找两个正序数组的中位数
随机推荐
QT learning 22 layout manager (I)
Exercise 6-1 classify and count the number of characters
The small project (servlet+jsp+mysql+el+jstl) completes a servlet with login function, with the operation of adding, deleting, modifying and querying. Realize login authentication, prevent illegal log
MongoDB数据库入门的常用命令
[Jilin University] information sharing of postgraduate entrance examination and re examination
Doxorubicin loaded on metal organic framework MIL-88 DOX | folic acid modified uio-66-nh2 doxorubicin loaded [email
Redis:字符串类型数据的操作命令
Common mixins
Redis:字符串類型數據的操作命令
关于回溯问题中的排列问题的思考(LeetCode46题与47题)
7-4 BCD decryption (10 points)
Polestar美股上市:5.5万台交付如何支持得起超200亿美元估值
愉悦资本新双币基金近40亿元完成首次关账
Exercise 7-6 count capital consonants
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
Exercise 10-1 calculate the sum of 1 to n using recursive functions
Too many files with unapproved license
protobuf与grpc
Redis: operation command of string type data
QT learning 21 standard dialog box in QT (Part 2)