Analyze the problem of Zabbix 5.0 disk automatic discovery and read-write monitoring

Analyze the problem of Zabbix 5.0 disk automatic discovery and read-write monitoring

Automatically discover disks

Configuration Key Values

Note: This key value is only supported on Linux platforms.

This discovery key returns two macros:

  • {#DEVNAME} : device name
  • {#DEVTYPE} : Device type

For example:

[ 
   { 
      "{#DEVNAME}":"loop1",
      "{#DEVTYPE}":"disk"
   },
   { 
      "{#DEVNAME}":"dm-0",
      "{#DEVTYPE}":"disk"
   },
   { 
      "{#DEVNAME}":"sda",
      "{#DEVTYPE}":"disk"
   },
   { 
      "{#DEVNAME}":"sda1",
      "{#DEVTYPE}":"partition"
   }
]

Configuring Filters

Used to filter device type and device name, usually the disk name is sd* or vd* .

Test verification

Add disk read and write rate monitoring

Disk read and write key values:

vfs.dev.read[<device>,<type>,<mode>]
vfs.dev.write[<device>,<type>,<mode>]

illustrate:

device - disk device (default is all )

type - possible values: sectors , operations , bytes , sps , ops , bps
Because the default value varies between operating systems, this parameter must be specified.
sps , ops , bps represent: sectors, operations, bytes per second, respectively.

mode - possible values: avg1 (1 minute average, default), avg5 , avg15 .
This parameter supports only these類型: sps, ops, bps.

Note: The default value of the "type" parameter is different for different operating systems.

Therefore, the monitoring key value of disk read and write can be configured as:

  • Read: vfs.dev.read[{#DEVNAME},sps]
  • Write: vfs.dev.write[{#DEVNAME},sps]

The {#DEVNAME} macro is allowed when the key value is vfs.dev.read[] and vfs.dev.write[] .

The above is the details of Zabbix 5.0: automatic disk discovery and read-write monitoring. For more information about Zabbix disk discovery and read-write monitoring, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Distributed monitoring system Zabbix 3.2 adds automatic discovery of disk IO and registration monitoring (recommended)
  • Zabbix monitoring solution - the latest official version 4.4 [recommended]
  • How to obtain information from ZabbixAPI and implement Zabbix-API monitoring in Python
  • How to use zabbix to monitor mongodb
  • Basic tutorial on installing and configuring Zabbix to monitor MySQL
  • How to set up Zabbix monitoring switch

<<:  How to use border-image to implement text bubble border sample code

>>:  What qualities should a good advertisement have?

Recommend

Summarize the common properties of BigIn functions in JavaScript

Table of contents 1. Overview 2. Attributes 1. Ma...

How to add ansible service in alpine image

Use apk add ansible to add the ansible service to...

Mobile Internet Era: Responsive Web Design Has Become a General Trend

We are in an era of rapid development of mobile In...

WeChat applet custom tabbar component

This article shares the specific code of the WeCh...

JavaScript to achieve the idea of ​​​​snake game

The implementation idea of ​​the javascript game ...

Detailed installation and use of docker-compose

Docker Compose is a Docker tool for defining and ...

MySQL installation and configuration method graphic tutorial (CentOS7)

1. System environment [root@localhost home]# cat ...

Why can't I see the access interface for Docker Tomcat?

Question: Is the origin server unable to find a r...

iview implements dynamic form and custom verification time period overlap

Dynamically adding form items iview's dynamic...

Analysis of Linux boot system methods

This article describes how to boot the Linux syst...

Solve the problem of black screen when starting VMware virtual machine

# Adjust VMware hard disk boot priority Step 1: E...

Two-hour introductory Docker tutorial

Table of contents 1.0 Introduction 2.0 Docker Ins...