Return values for vfs.dev.get
Overview
This section provides return value details for the vfs.dev.get item.
The item is supported on Linux by Zabbix agent and Zabbix agent 2, and on AIX by Zabbix agent.
Details
This item returns detailed information on block devices whose names match the given regular expression.
The output is structured as a JSON object containing config and, depending on the <mode> parameter, values arrays.
The config array contains the properties that are available for the selected mode. The values array is returned only for modes that provide block device statistics.
Unavailable metrics are excluded from the JSON output.
The following sections describe the properties returned for each mode.
disks mode
vfs.dev.get[disks,.*] returns block device configuration data.
Properties:
- name - block device name;
- devid - block device identifier, for example, a WWN-based or kernel-generated device ID;
- type - block device type (
disk,partition,rom); - path - path to the block device node;
- model - device model;
- serial - device serial number;
- wwn - device World Wide Name (WWN);
- size_bytes - device size in bytes;
- logical_block_size - logical block size in bytes;
- physical_block_size - physical block size in bytes.
Example for Linux:
{
"config": [
{
"name": "sda",
"devid": "ata-ST2000LM015-2E8174_ZDZ3YHZY",
"type": "disk",
"path": "/dev/sda",
"model": " ST2000LM015-2E81",
"wwn": "naa.5000c500b2791423",
"size_bytes": 2000398934016,
"logical_block_size": 512,
"physical_block_size": 4096
},
{
"name": "sdb",
"devid": "usb-Kingston_DataTraveler_3.0_E0D55E6C382C15A158991CBD-0:0",
"type": "disk",
"path": "/dev/sdb",
"model": "DataTraveler 3.0",
"size_bytes": 61991813632,
"logical_block_size": 512,
"physical_block_size": 512
},
{
"name": "nvme0n1",
"devid": "nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K753633",
"type": "disk",
"path": "/dev/nvme0n1",
"model": "SAMSUNG MZVLW256HEHP-000L7",
"serial": "S35ENX1K753633",
"wwn": "eui.002538b781b7dc55",
"size_bytes": 256060514304,
"logical_block_size": 512,
"physical_block_size": 512
}
]
}
Example for AIX:
{
"config": [
{
"name": "cd0",
"type": "disk",
"path": "/dev/cd0",
"size_bytes": 0,
"logical_block_size": 512
},
{
"name": "hdisk1",
"type": "disk",
"devid": "483333213600507680C818022F000000000015EA404214503IBMfcp05VDASD03AIXvscsi",
"path": "/dev/hdisk1",
"size_bytes": 51136000000,
"logical_block_size": 512
},
{
"name": "hdisk0",
"type": "disk",
"devid": "483333213600507680C818022F000000000015EA304214503IBMfcp05VDASD03AIXvscsi",
"path": "/dev/hdisk0",
"size_bytes": 0,
"logical_block_size": 512
}
]
}
devices mode
vfs.dev.get[devices,.*] returns block device configuration data, including partitions.
Properties:
- name - block device name.
- devid - block device identifier.
- type - block device type (
disk,partition,rom). - partitions - partitions on the device. Contains partition names and their sizes in bytes.
Example for Linux:
{
"config": [
{
"name": "sda",
"devid": "ata-ST2000LM015-2E8174_ZDZ3YHZY",
"type": "disk",
"partitions": {
"sda1": 16759808,
"sda2": 2000381018112
}
},
{
"name": "sdb",
"devid": "usb-Kingston_DataTraveler_3.0_E0D55E6C382C15A158991CBD-0:0",
"type": "disk",
"partitions": {
"sdb1": 27631878144,
"sdb2": 34359768576,
"sdb3": 32256
}
},
{
"name": "nvme0n1",
"devid": "nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K753633",
"type": "disk",
"partitions": {
"nvme0n1p1": 209715200,
"nvme0n1p2": 16777216,
"nvme0n1p3": 255060869120,
"nvme0n1p4": 770703360
}
}
]
}
disk_stats mode
vfs.dev.get[disk_stats,.*] returns block device configuration data and disk statistics.
Properties:
- name - block device name.
- devid - block device identifier.
- type - block device type (
disk,partition,rom). - size_bytes - device size in bytes.
- logical_block_size - logical block size in bytes.
- stats - block device I/O statistics. Contains:
- reads_completed - number of completed read operations;
- writes_completed - number of completed write operations;
- bytes_read - number of bytes read;
- bytes_written - number of bytes written;
- io_time_ms - total time spent doing I/O, in milliseconds.
Example for Linux
{
"config": [
{
"name": "sda",
"devid": "ata-ST2000LM015-2E8174_ZDZ3YHZY",
"type": "disk",
"size_bytes": 61991813632
},
{
"name": "sdb",
"devid": "usb-Kingston_DataTraveler_3.0_E0D55E6C382C15A158991CBD-0:0",
"type": "disk",
"size_bytes": 61991813632
},
{
"name": "nvme0n1",
"devid": "nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K753633",
"type": "disk",
"size_bytes": 256060514304
}
],
"values": [
{
"name": "sda",
"stats": {
"reads_completed": 871,
"writes_completed": 0,
"bytes_read": 13045760,
"bytes_written": 0,
"io_time_ms": 1256
}
},
{
"name": "sdb",
"stats": {
"reads_completed": 51017,
"writes_completed": 10682,
"bytes_read": 10514627,
"bytes_written": 1530472,
"io_time_ms": 284988
}
},
{
"name": "nvme0n1",
"stats": {
"reads_completed": 1259,
"writes_completed": 7,
"bytes_read": 49698,
"bytes_written": 6,
"io_time_ms": 243
}
}
]
}
Example for AIX:
{
"config": [
{
"name": "cd0",
"type": "disk",
"path": "/dev/cd0",
"size_bytes": 0,
"logical_block_size": 2048
},
{
"name": "hdisk1",
"type": "disk",
"devid": "483333213600507680C818022F000000000015EA404214503IBMfcp05VDASD03AIXvscsi",
"path": "/dev/hdisk1",
"size_bytes": 51136000000,
"logical_block_size": 512
},
{
"name": "hdisk0",
"type": "disk",
"devid": "483333213600507680C818022F000000000015EA304214503IBMfcp05VDASD03AIXvscsi",
"path": "/dev/hdisk0",
"size_bytes": 0,
"logical_block_size": 512
}
],
"values": [
{
"name": "cd0",
"stats": {
"reads_completed": 21,
"writes_completed": 0,
"bytes_read": 75776,
"bytes_written": 0,
"io_time_ms": 0
}
},
{
"name": "hdisk1",
"stats": {
"reads_completed": 35888,
"writes_completed": 1165147,
"bytes_read": 593699840,
"bytes_written": 10009646592,
"io_time_ms": 69
}
},
{
"name": "hdisk0",
"stats": {
"reads_completed": 3,
"writes_completed": 0,
"bytes_read": 12800,
"bytes_written": 0,
"io_time_ms": 0
}
}
]
}
device_stats mode
vfs.dev.get[device_stats,.*] returns block device configuration data and device statistics.
Properties:
- name - block device name.
- devid - block device identifier.
- type - block device type (
disk,partition,rom). - size_bytes - device size in bytes.
- stats - block device I/O statistics. Contains:
- reads_completed - number of completed read operations;
- writes_completed - number of completed write operations;
- bytes_read - number of bytes read;
- bytes_written - number of bytes written;
- io_time_ms - total time spent doing I/O, in milliseconds.
Example for Linux:
{
"config": [
{
"name": "sda",
"devid": "ata-ST2000LM015-2E8174_ZDZ3YHZY",
"type": "disk",
"size_bytes": 61991813632
},
{
"name": "sda1",
"type": "partition",
"devid": "ata-ST2000LM015-2E8174_ZDZ3YHZY-part1",
"size_bytes": 1234567890
},
{
"name": "sda2",
"type": "partition",
"devid": "ata-ST2000LM015-2E8174_ZDZ3YHZY-part2",
"size_bytes": 1234567890
},
{
"name": "sdb",
"devid": "usb-Kingston_DataTraveler_3.0_E0D55E6C382C15A158991CBD-0:0",
"type": "disk",
"size_bytes": 61991813632
},
{
"name": "sdb1",
"type": "partition",
"devid": "usb-Kingston_DataTraveler_3.0_E0D55E6C382C15A158991CBD-0:0-part1",
"size_bytes": 1234567890
},
{
"name": "sdb2",
"type": "partition",
"devid": "usb-Kingston_DataTraveler_3.0_E0D55E6C382C15A158991CBD-0:0-part2",
"size_bytes": 1234567890
},
{
"name": "sdb3",
"type": "partition",
"devid": "usb-Kingston_DataTraveler_3.0_E0D55E6C382C15A158991CBD-0:0-part3",
"size_bytes": 1234567890
},
{
"name": "nvme0n1",
"devid": "nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K753633",
"type": "disk",
"size_bytes": 256060514304
},
{
"name": "nvme0n1p1",
"type": "partition",
"devid": "nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K753633-part1",
"size_bytes": 1234567890
},
{
"name": "nvme0n1p2",
"type": "partition",
"devid": "nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K753633-part2",
"size_bytes": 1234567890
},
{
"name": "nvme0n1p3",
"type": "partition",
"devid": "nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K753633-part3",
"size_bytes": 1234567890
},
{
"name": "nvme0n1p4",
"type": "partition",
"devid": "nvme-SAMSUNG_MZVLW256HEHP-000L7_S35ENX1K753633-part4",
"size_bytes": 1234567890
}
],
"values": [
{
"name": "sda",
"stats": {
"reads_completed": 871,
"writes_completed": 0,
"bytes_read": 13045760,
"bytes_written": 0,
"io_time_ms": 1256
}
},
{
"name": "sda1",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
},
{
"name": "sda2",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
},
{
"name": "sdb",
"stats": {
"reads_completed": 51017,
"writes_completed": 10682,
"bytes_read": 10514627,
"bytes_written": 1530472,
"io_time_ms": 284988
}
},
{
"name": "sdb1",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
},
{
"name": "sdb2",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
},
{
"name": "sdb3",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
},
{
"name": "nvme0n1",
"stats": {
"reads_completed": 1259,
"writes_completed": 7,
"bytes_read": 49698,
"bytes_written": 6,
"io_time_ms": 243
}
},
{
"name": "nvme0n1p1",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
},
{
"name": "nvme0n1p2",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
},
{
"name": "nvme0n1p3",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
},
{
"name": "nvme0n1p4",
"stats": {
"reads_completed": 123,
"writes_completed": 123,
"bytes_read": 123,
"bytes_written": 123,
"io_time_ms": 123
}
}
]
}