Zabbix Modifying the template OS Linux template to make it more accurate to use RAM (used memory)

Source: Internet
Author: User

Description

[[Email protected]~]# free -m total used free shared buffers Cached Mem: 995 785  209 06 92- /+ buffers/cache: 686< Span class= "PLN" > 308swap:  478 200278                

Available memory: Available memory=free+buffers+cached, i.e. 308=209+6+92
Memory used: Used memory=used-buffers-cached, 686=785-6-92

When using Zabbix's own template OS Linux template to monitor the server, used memory is found to be too high. This is because Zabbix uses the vm.memory.size[used] key to get the server's used memory (used memories). But vm.memory.size[used] Gets the value (shown below as used 785) also contains buffers, cached this part. Buffers, cached This part is also available to the server. But Linux itself uses as much memory as possible, freeing buffers, cached space only when memory is low.
Vm.memory.size[available] The available memory obtained is quite accurate. So we're going to change the key value of the used memory so that the total RAM minus the available memory gets the exact memory used.

Specific:
1. configure| templates| Template OS Linux, select items, click used memory to enter the configuration, before modifying as shown



2. Modifying the type and formula
Type Select calculated
Formula input (Last ("Vm.memory.size[total]")-last ("vm.memory.size[available]"), with total memory minus available memory for accurate used memory.
After the modification as shown


View:
After a while, you can see that the server's used memory is already accurate.

Reprint Please specify: Cool |coolnull|? Zabbix Modifying the template OS Linux template to make it more accurate to use RAM (used memory)

Zabbix Modifying the template OS Linux template to make it more accurate to use RAM (used memory)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.