Zabbix Monitoring Disk capacity
Two kinds of monitoring methods:
One: Monitor disk usage.
Zabbix adding monitoring of disk partitions
First, the data on the server is mostly on/www.
/dev/sda8 ext4 299G 139G 146G 49%/www
gui--Configuration--Host--Select a host--project--Create Project
Type Zabbix proxy (passive)
Key value Vfs.fs.size[/www,pfree]
Data type: numeric (floating point)
Unit
Archive
Here's what you need to explain
What I want to monitor is the percentage of free space for a partition
Vfs.fs.size[fs,<mode>]
mode, the default is total, the rest is free,used,pfree,pused,p here should be the meaning of the hundred points
The corresponding Unit is B (here it means byte) and%, if the monitor size, you have to use numeric (unsigned) Decimal
Then create the trigger
An expression:
{m_redis_s11357712425:vfs.fs.size[/www,pfree].last (0)}<20
Host words fill m_redis_s11357712425
Template, fill in the template name Mtepl
Space less than 20% on alarm, severity, warning
All right, finish it.
Two, the remaining space of the monitoring disk is less than 10G
gui--Configuration--Host--Select a host--project--Create Project
Type Zabbix proxy (passive)
Key value Vfs.fs.size[/,free]
Data type: numeric (floating point)
Units GB
Archive
Then create the trigger
An expression:
{m_redis_s11357712425:vfs.fs.size[/,pree].last (0)}<10g
Host words fill m_redis_s11357712425
Template, fill in the template name Mtepl
Space less than 10G alarm, severity, warning
All right, finish it.
This article is from the "Dream to Reality" blog, please be sure to keep this source http://lookingdream.blog.51cto.com/5177800/1834259
Zabbix Monitoring disk partition space