
Sample shell script to shutdown box if temperature >= 55☌ ( download link): To power off / shutdown computer, run following command via cron tab (cron job) file: Sample outputs: /dev/sda 45C(Samsung SSD 850 EVO mSATA 500GB) Shutdown Linux Computer If Temperature >= 55 You can format it as follows using the awk command: Sample outputs: |/dev/sda|Samsung SSD 850 EVO mSATA 500GB|45|C| Use telnet or nc / netcat command to to get a temperature from a remote box: Login on remote box and start it as follows to monitor /dev/sda, /dev/sdb, /dev/sdc, and /dev/sdd: How Do I Find Out Remote Server HDD Temperature?īy default hddtemp bind to TCP/IP port 7634.

If temperature is higher than 60☌, consider cooling options immediately. Sample outputs /dev/sda: WDC WD2500YS-01SHB1: 25☌Ībove output indicate that my hard disk temperature is 25☌. To see temperature for the /dev/sda, enter the following command: How do I monitor hard disk temperature on Linux? If omitted hddtemp will try to guess the disk type. Let us see usage, syntax and examples of hddtemp command.

# wget Monitor Hard Disks Temperature With hddtemp Install hard disk temperature database at /usr/share/misc or /etc directory: Untar and install hddtemp using the following commands: You can also perform source code installation. Related: How to check CPU temperature in OpenSUSE Linux A note about source code installation Run the following dnf command to install hddtemp under a Fedora Linux distro:Įxecute the following zypper command to install hddtemp under an OpenSUSE Linux distro : Type the following pacman command to install hddtemp under an Arch Linux distro: To install hddtemp under a CentOS/RHEL/SL/Oracle Linux, run yum command (first turn on EPEL repo): Processing triggers for systemd (245.4-4ubuntu3.19). Processing triggers for man-db (2.9.1-1). 267678 files and directories currently installed.) Selecting previously unselected package hddtemp. Get:1 focal/universe amd64 hddtemp amd64 0.3-beta15-53 The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 185 kB of additional disk space will be used. Sample outputs from my Ubuntu 20.04 LTS desktop version is as follow: password for vivek: To install hddtemp on a a Debian / Ubuntu Linux use apt-get command/ apt command: hddtemp can work as a simple command line tool or as a daemon to get information from all servers. Only modern hard drives have a temperature sensor. The hddtemp or smartctl utility will give you the temperature of your hard drive by reading data from S.M.A.R.T. Monitor Hard Disks Temperature With hddtemp
