Zabbix Share

Zabbix templates, modules & more
Log in
Choose social to login:
Login With Google
Login With Github

Nav view search

Navigation

Advanced Search
  • Applications
  • Cloud
  • Databases
  • Network Appliances
  • Network Devices
  • Official Templates
  • Operating Systems
    • Debian
    • FreeBSD
    • IBM i (i5/OS, OS/400) for IBM System i (AS/400)
    • Linux
    • Mac OS
    • macOS
    • RedHat
    • Security
    • Solaris
    • Ubuntu
    • VMWare
    • Windows
  • Power (UPS)
  • Printers
  • SCADA, IoT, Energy, Home Automation, Industrial monitoring
  • Server Hardware
  • Storage Devices
  • Telephony
  • Unsorted
  • Virtualization
  • Zabbix
  • Recently Added
  • Recently Updated
  • Popular
  • Most Rated
  • Top Rated
  • Most Reviewed

LVM Cache

  • 1031.png
  • 1032.jpg

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

  1. Put file lvmcache.conf to /etc/zabbix/zabbix_agent.d/
  2. Put file sudoers_lvmcache to /etc/sudoers.d/ (you need sudo program installed)
  3. Put file vmcache to /etc/zabbix/scripts/. Then you can execut this file and test. This script produces JSON output.
  4. Import the lvmcache_template.xml into your Zabbix server (click on the Raw button to download)
  5. Add the template to your host
  6. 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)
Rating
500
0 vote

Listing Details

Type
Template
OS
  • Debian
Min Zabbix version
4.4.x
Features
  • Zabbix Agent
  • Custom Script
  • Dependent Items
Link
github.com/pavlozt/somezabbixtemplates/tree/master/lvmcache
Created
2020-11-30
Modified
2020-11-30 12:26:20
Version 4.4
Download (71 downloads)
1 version, '2020-11-30 12:15' modified
Tags
lvm, cache
Author
pavlozt
Owner
PavelZ
RecommendReportOwner's listing
All resources created by third parties; use at your own risk
© 2001-2018 by Zabbix SIA. All rights reserved. Trademark Policy · Contact us