When it comes to infrastructure monitoring, many people monitor processor temperature but fail to check hard drive temperature. Paying attention to the temperature of your hard drive is important because overheated hard drives may cause data loss, data corruption, computer crashes, or even hard disk failure. While other components like a malfunctioned processor or graphics card can be replaced, hard drive failure can be more costly and could lead to the loss of important files which may no longer be recoverable.

Hddtemp is a small utility (with daemon) that provides the hard-drive temperature via S.M.A.R.T. Note that this is only available for drives supporting S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology), a supplementary component for devices to monitor, store, and analyze the health of their operation. Metrics are collected (temperature, number of reallocated sectors, seek errors...) to measure the health, predict possible failures, and provide notifications on unsafe values.

Why use the Hddtemp Telegraf Plugin?

The hddtemp utility comes standard with several PATA, SATA or SCSI hard drives to monitor and report hard drive temperature, so using this Hddtemp Telegraf Plugin is an easy way to capture hard drive temperature metrics as a part of your infrastructure monitoring stack. You can select which drive to collect these metrics against and compare it to other metrics about the hard drive’s performance from a number of other Telegraf plugins to give you a holistic picture of the hard drive’s overall health.

How to monitor Hddtemp using the Telegraf plugin

The Hddtemp Telegraf Input Plugin reads data from hddtemp daemons. By default, the plugin gathers temperature data from all disks detected by hddtemp. You can configure it to only collect temps from the selected disks. Because this plugin reads data from the hddtemp daemon, hddtemp should be installed and its daemon running. Hddtemp requires root privileges, and the command hddtemp must be followed by at least one drive's location. You can list several drives separated by spaces.

Key Hddtemp metrics to use for monitoring

Hddtemp collects temperature on specified devices with the following metrics that will help you identify potential issues:

  • device
  • model
  • unit
  • status
  • source

For more information, please check out the documentation.

Project URL   Documentation

Related Resources

Infrastructure and application monitoring

The solution to monitor your entire infrastructure stack, including servers, containers, databases and cloud services.

CPU Telegraf Plugin

The CPU Telegraf Plugin gathers metrics on the system CPU that you can store in InfluxDB.

Linux System Monitoring Template

How to use Linux System Monitoring Template

Scroll to Top