File system is mounted judgment

vfs.dir.size [thee, , , , ]
Directory size (in bytes). Integer
absolute path of the directory - the dir
regex_incl - regular expression pattern description file contains names (if blank including all files; an empty string is the default)
regex_excl - regular expression pattern description file name for exclusion (if air does not exclude any file; empty string is the default)
the MODE - possible values:
at apparent (default) - the express file size, rather than disk utilization (as -sb dir du),
disk - get disk usage ( as du -s -B1 dir). and du command different, vfs.dir.size monitoring items in the calculation of the size of the directory will be hidden documented account (as du -sb. [^.] * * in the dir).
max_depth - the maximum depth to traverse subdirectories. 1 (default) - unlimited, 0 - not to traverse the subdirectories.

Zabbix user computing has only read permissions.
Example:
⇒ vfs.dir.size [/ tmp, log] - calculating the size in / tmp comprising "log" all files
⇒ vfs.dir.size [/ tmp, log, ^ + old $..] - Calculation / tmp contains "log" in the size of all files, the file does not contain including '.old' of

Mount the file system of the case, the final analysis is the mount folder, you can use max_depth set to 0 to obtain the size of the query folder, so not a lot of pressure on the server,

Created within a trigger, dependent on how much time is to create a monitoring item of data acquisition can not call the police, file system error
, even if the file path does not exist query, monitored item becomes non-support, but nodata trigger is still valid, because not obtain the data, it will alarm

Guess you like

Origin www.cnblogs.com/0916m/p/11768827.html