Zabbix using macros to automatically discover and monitor mounted file systems

Source: Internet
Author: User

Create a template First

Create a discovery rule in a template

Mounted filesystem discovery

Vfs.fs.discovery

Filters for and/or {#FSTYPE} matches @File systems for discovery

Project prototype 1

Free disk space on {#FSNAME}

vfs.fs.size[{#FSNAME},free]

Number of the non-positive

Decimal digits

Unit is b

Both the stored value and the display value are unchanged

Apply set to FileSystem


Project prototype 2

Free disk space on {#FSNAME} (percentage)

vfs.fs.size[{#FSNAME},pfree]

Number of the non-positive

Decimal digits

Unit is b

Application Set is Filesystenm


Project prototype 3

Free inodes on {#FSNAME} (percentage)

vfs.fs.inode[{#FSNAME},pfree]

Number of the non-positive

Decimal digits

Unit is b

Apply set to FileSystem


Project prototype 4

Total disk space on {#FSNAME}

vfs.fs.size[{#FSNAME},total]

Number of the non-positive

Decimal digits

Unit is b

Application Set is Filedydtem


Project Prototype 5

Used disk space on {#FSNAME}

vfs.fs.size[{#FSNAME},used]

Number of the non-positive

Decimal digits

Unit is b

Application Set is filesystem


These five simple project prototypes can be added according to your actual needs


Create a new graphic prototype

Disk space usage {#FSNAME}

Add two prototypes in. Free disk space on {#FSNAME} and total disk space on {#FSNAME}

Add Trigger

New Trigger 1

Free inodes are less than 20% on volume {#FSNAME}

Expression {server template:vfs.fs.inode[{#FSNAME},pfree].last (0)}<20

New Plus Trigger 2

Free disk space was less than 20% on volume {#FSNAME}

Expression is

{Server template:vfs.fs.size[{#FSNAME},pfree]. Last (0)} <20
after the template is added, you can manually add the host or use the host to find the way to add the host.

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.