LVM Cache
LVM Cache monitoring template.
allows you to evaluate the efficiency of caching by the built-in dm-cache mechanism.
What do these values mean?
Details about monitored values described in Linux Kernel Documentation https://www.kernel.org/doc/Documentation/device-mapper/cache.txt
Usage
- Put file lvmcache.conf to /etc/zabbix/zabbix_agent.d/
- Put file sudoers_lvmcache to /etc/sudoers.d/ (you need
sudo
program installed) - Put file vmcache to /etc/zabbix/scripts/. Then you can execut this file and test. This script produces JSON output.
- Import the
lvmcache_template.xml
into your Zabbix server (click on theRaw
button to download) - Add the template to your host
- Check if new data arrives at Last Data section and Graphs.
This script assumes that you have ONLY ONE caching device and polls the first device. Therefore, it does not require configuration and specifying a device name. Working with disks implies elevated privileges and therefore you need do not forget about sudoers_zabbix_lvmcache file.
Commands for debugging
- dmsetup status
- /etc/zabbix/scripts/lvmcache
- zabbix_get -s 192.168.1.1 -k 'lvmcache.raw' (on zabbix server or zabbix proxy)
Listing Details
Type
OS
Min Zabbix version
4.4.x
Created
Modified
Version 4.4
Download (71 downloads)
1 version, '2020-11-30 12:15' modified
1 version, '2020-11-30 12:15' modified
Author
pavlozt
Owner