当前位置:网站首页>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 .
边栏推荐
- Find specified characters
- Mysql多表查询 #子查询
- Exercise 9-3 plane vector addition
- NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
- Webpage connection database ~ simple implementation of addition, deletion, modification and query complete code
- 7-17 crawling worms (break exercise)
- 常见问题之PHP——ldap_add(): Add: Undefined attribute type in
- FPGA test method takes mentor tool as an example
- Leetcode(4)——尋找兩個正序數組的中比特數
- JS get DPI, PX to cm, cm to PX
猜你喜欢

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

Concat and concat_ Ws() differences and groups_ Use of concat() and repeat() functions
![[Jilin University] information sharing of postgraduate entrance examination and re examination](/img/1d/550a991385b842a21e2b301725407e.png)
[Jilin University] information sharing of postgraduate entrance examination and re examination

Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not

jvm-类加载

Redis:Redis的数据结构、key的操作命令

JS input number and standard digit number are compared. The problem of adding 0 to 0

Why are grass-roots colleges and universities with "soil and poverty" called "Northeast small Tsinghua"?

Eight sorts

Leetcode(4)——尋找兩個正序數組的中比特數
随机推荐
玖逸云黑免费无加密版本源码
28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;
Vite project commissioning
战略、战术(和 OKR)
Article content typesetting and code highlighting
6-9 statistics of single digits (15 points)
Invalid Z-index problem
Thread.sleep和TimeUnit.SECONDS.sleep的区别
TS code automatically generates JS
7-11 calculation of residential water charges by sections
How to delete an attribute or method of an object
QT learning 21 standard dialog box in QT (Part 2)
jvm-类加载
一文了解微分段应用场景与实现机制
Sendmail无法发送邮件及发送过慢解决
添加Zabbix计算类型项目Calculated items
Generate directories from web content
Leetcode(4)——寻找两个正序数组的中位数
修改数据库中的记录为什么报这个错
js . Find the first palindrome string in the array