Difference between revisions of "Hddtemp"

From ArchWiki
Jump to: navigation, search
m (got rid of "mainboards" category)
(Added systemd start procedures, should probably remove the initscripts section soon™)
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[Category:Daemons and system services (English)]]
+
[[Category:Status monitoring and notification]]
[[Category:HOWTOs (English)]]
+
 
[https://savannah.nongnu.org/projects/hddtemp/ hddtemp] is a small utility (daemonizable) that gives you the temperature of your hard drive by reading S.M.A.R.T. information (for drives that support this feature).
 
[https://savannah.nongnu.org/projects/hddtemp/ hddtemp] is a small utility (daemonizable) that gives you the temperature of your hard drive by reading S.M.A.R.T. information (for drives that support this feature).
  
Line 15: Line 14:
  
 
==Daemon==
 
==Daemon==
===Setup===
+
Running the daemon gives you the possibility to access the temperature via an TCP/IP request, so you could use this in order to check the temperature from outside, or within some scripts.
 +
===Setup with systemd===
 +
 
 +
Once hddtemp has been installed, standard systemctl procedures work to start the daemon:
 +
# systemctl start hddtemp
 +
 
 +
To start it on boot, enable it:
 +
#systemctl enable hddtemp
 +
 
 +
===Setup with legacy initscripts===
 +
 
 
Start the daemon:
 
Start the daemon:
  # /etc/rc.d/hddtemp start
+
  # rc.d start hddtemp
  
 
Add the daemon to the DAEMONS array in /etc/rc.conf to facilitate auto-start on boot:
 
Add the daemon to the DAEMONS array in /etc/rc.conf to facilitate auto-start on boot:
  # DAEMONS=(coretemp it87 ... '''hddtemp''' ...)
+
  # DAEMONS=(... '''hddtemp''' ...)
  
 
===Usage===
 
===Usage===
Line 35: Line 44:
 
==Monitors==
 
==Monitors==
  
Hddtemp can be easily integrated with system monitors like [[Conky]] or the GNOME sensors applet.
+
Hddtemp can be easily integrated with system monitors like [[Conky]], the {{pkg|sensors-applet}} for GNOME Panel or the {{pkg|xfce4-sensors-plugin}} for Xfce Panel.
  
 
== See also ==
 
== See also ==
 
[[lm sensors]]
 
[[lm sensors]]

Revision as of 09:17, 8 January 2013

hddtemp is a small utility (daemonizable) that gives you the temperature of your hard drive by reading S.M.A.R.T. information (for drives that support this feature).

Installation

Sync and install with pacman:

# pacman -S hddtemp

Usage

Hddtemp can be invoked with the drive as the argument:

# hddtemp /dev/sd[x]

Where x is the drive.

Daemon

Running the daemon gives you the possibility to access the temperature via an TCP/IP request, so you could use this in order to check the temperature from outside, or within some scripts.

Setup with systemd

Once hddtemp has been installed, standard systemctl procedures work to start the daemon:

# systemctl start hddtemp

To start it on boot, enable it:

#systemctl enable hddtemp

Setup with legacy initscripts

Start the daemon:

# rc.d start hddtemp

Add the daemon to the DAEMONS array in /etc/rc.conf to facilitate auto-start on boot:

# DAEMONS=(... hddtemp ...)

Usage

Another way to get the temperature is by connecting to the daemon which is listening on port 7634.

$ telnet localhost 7634

Or with netcat:

$ nc localhost 7634

Refer to the manpage for information like supported drives, logging, etc.

$ man hddtemp

Monitors

Hddtemp can be easily integrated with system monitors like Conky, the sensors-applet for GNOME Panel or the xfce4-sensors-plugin for Xfce Panel.

See also

lm sensors