Articles on: Plugins

Monitoring HDD/SSD/NVMe Disk health



Using the diskstatus plugin you will be able to monitor the status of your hdd, ssd and/or nvme drives. This plugin requires the agent to be run under the root user.

This plugin requires nixstatsagent version 1.1.50 or higher. To upgrade run
pip install nixstatsagent --upgrade.

Run as root


The smartctl command needs to be run as the root user, therefor it's required to run the agent as the root user.

Running the monitoring agent as root user.

Install dependencies


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

For all other drives you need smartctl from smartmontools. On debian and ubuntu run apt-get install smartmontools or under Cent OS run yum install smartmontools.

Test the plugin (smartmontools)


Run nixstatsagent test diskstatus to check if the plugin is working.

Test the plugin (nvme-cli)


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

Enabling the plugin


Edit /etc/nixstats.ini and add the following to enable the plugin.

[diskstatus]
enabled = yes


Enabling the NVME plugin


Edit /etc/nixstats.ini and add the following to enable the plugin.

[diskstatus-nvme]
enabled = yes


Restart the agent


Run service nixstatsagent restart to restart the service.

Updated on: 15/12/2020

Was this article helpful?

Share your feedback

Cancel

Thank you!