.\" $OpenBSD: sensorsd.8,v 1.18 2007/11/28 19:20:05 jmc Exp $ .\" .\" Copyright (c) 2003 Henning Brauer .\" Copyright (c) 2005 Matthew Gream .\" Copyright (c) 2007 Constantine A. Murenin .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd $Mdocdate: November 28 2007 $ .Dt SENSORSD 8 .Os .Sh NAME .Nm sensorsd .Nd hardware sensors monitor .Sh SYNOPSIS .Nm sensorsd .Op Fl d .Op Fl c Ar check .Op Fl r Ar report .Sh DESCRIPTION The .Nm utility retrieves sensor monitoring data like fan speed, temperature, voltage and .Xr ami 4 logical disk status via .Xr sysctl 3 . When the state of any monitored sensor changes, an alert is sent using .Xr syslog 3 and a command, if specified, is executed. .Pp By default, .Nm monitors status changes on all sensors that keep their state, thus sensors that automatically provide status do not require any additional configuration. In addition, for every sensor, no matter whether it automatically provides its state or not, custom low and high limits may be set, so that a local notion of sensor status can be computed by .Nm , indicating whether the sensor is within or is exceeding its limits. .Pp Limit and command values for a particular sensor may be specified in the .Xr sensorsd.conf 5 configuration file. This file is reloaded upon receiving .Dv SIGHUP . .Pp The options are as follows: .Bl -tag -width Ds .It Fl c Ar check Check sensors every .Ar check seconds. .It Fl d Do not daemonize. If this option is specified, .Nm will run in the foreground. .It Fl r Ar report Report changes in sensor status every .Ar report seconds. .El .Sh FILES .Bl -tag -width "/etc/sensorsd.conf" .It /etc/sensorsd.conf Configuration file for .Nm . .El .Sh SEE ALSO .Xr sysctl 3 , .Xr syslog 3 , .Xr sensorsd.conf 5 , .Xr syslogd 8 .Sh HISTORY The .Nm program first appeared in .Ox 3.5 . .Sh CAVEATS Certain sensors may flip status from time to time. To guard against false reports, .Nm implements a state dumping mechanism. However, this inevitably introduces an additional delay in status reporting and command execution, e.g. one may notice that .Nm makes its initial report about the state of monitored sensors not immediately, but either 1 or 2 minutes after it is being started up.