Disk Status Plugin

Last modified: October 26, 2021


Overview

The Disk Status plugin allows you to monitor the status of your HDD, SSD, and NVME drives.

Note:
This plugin requires that you run the agent as the root user.

Dependencies

This plugin requires agent360 version 1.1.50 or higher. To upgrade the agent on a system that runs python2, run the following command:

pip install agent360 --upgrade

To upgrade the agent on a system that runs python3, run the following command:

pip3 install agent360 --upgrade

The smartctl command needs to be run as the root user. Therefore, you need to run the agent as the root user..

  • For NVMe drives, you need nvme-cli, instructions are available here.

  • For all other drives, you need smartctl from smartmontools.

    • On Debian and Ubuntu, the apt-get install smartmontools command.

    • On CentOS, run the yum install smartmontools command.

Install the plugin

To enable the plugin, edit the /etc/agent360.ini file and add the following lines:

1
2
[diskstatus]
enabled = yes

For NVME, add the following additional lines to the /etc/agent360.ini file:

1
2
[diskstatus-nvme]
enabled = yes

Test the plugin (smartmontools)

Run the agent360 test diskstatus command to check if the plugin is working.

Test the plugin (nvme-cli)

Run the agent360 test diskstatus-nvme command to check if the plugin is working.

Now you can restart the agent with the service agent360 restart command.


Get Started With 360

360 Dashboard

360 Monitoring Dashboard