Files
lm-sensors/prog/sensord/sensord.8
T
Merlin Hughes ae68e2238c Made a few changes to nonstandard sensord:
. added support for via686a and other new chips
. added support for alarms and beeps
. updated to log through syslog instead of a custom logfile
. updated so when run as "sensors" (ln -s sensord sensors) it
  mimics the existing sensors command except for formatting
. modularized a bit
Yet to do:
. complete support for alarm checking without sensor logging
. signal alarms through syslog level ALERT
. add final support for multivalued alarms
. check up on some questions about existing sensors command
. update manual page inc. notes on syslog usage
. test more fully
-- merlin


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@828 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-02 22:49:34 +00:00

131 lines
4.1 KiB
Plaintext

.\" Copyright 1999 Merlin Hughes <merlin@merlin.org>
.\" sensord is distributed under the GPL
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein. The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.TH sensord 8 "December 2, 1999" "Version 0.2.0" "Linux System Administration"
.SH NAME
sensord \- Sensor information logging daemon.
.SH SYNOPSIS
.B sensord [
.I options
.B ]
.SH DESCRIPTION
.B Sensord
is a daemon that records in a log file the readings of all sensor chips at
an interval of thirty minutes, or as configured on the command line.
.B Sensord
knows about certain chips, and outputs nicely formatted readings for them; but
it can also display the information of unknown chips, as long as
.I libsensors
knows about them.
.SH OPTIONS
.IP "-c config-file"
Specify a configuration file. If no file is specified, the name `sensors.conf'
is used. If the name does not contain a leading directory slash, or this parameter
is not present, the following paths are examined:
.BR /etc ,
.BR /usr/lib/sensors ,
.BR /usr/local/lib/sensors ,
.BR /usr/lib ,
.BR /usr/local/lib .
.IP "-i interval"
Specifies the interval, in seconds, between sensor readings. The default
is 1800 seconds (30 minutes).
.IP "-l log-file"
Specify the log file to which to append. If no file is specified, the
default log file `/var/log/sensors' is created. Note that this file is
interpreted relative to the root directory `/', not the current directory.
.IP -h
Prints a help message and exits.
.IP -v
Displays the program version and exits.
.SH SIGNALS
Upon receipt of a SIGHUP (see
.BR signal (7)
for details) this daemon closes and reopens its log file. Use this to rotate
log-files: Rename the old log file and then HUP this daemon; it will
commence writing to a new log file.
Upon receipt of a SIGTERM (see
.BR signal (7)
for details) this daemon should gracefully shut down.
.SH ERRORS
Errors encountered by this daemon are logged to
.BR syslogd (8)
under the program name `sensord', after which the daemon aborts
with a failure note in its own log file.
.SH NOTES
It is expected that all required modules are loaded prior to this daemon
being started. Typically, this is achieved with an entry in
`/etc/rc.d/...' containing
.BR modprobe (1)
commands to load the required modules before starting the daemon.
.SH WARNING
On a typical system with one sensor chip, expect about 1KB per sensor
entry in the log file. This works out at about 1.5MB per month. You
must rotate the sensor log files, using something like
.BR logrotate (8)
or equivalent. You might, for example, create `/etc/logrotate.d/sensord'
containing:
.IP
.nf
# Sample logrotate.d entry
/var/log/sensors {
missingok
postrotate
/usr/sbin/killall -HUP sensord
endscript
}
.fi
.PP
.SH BUGS
.B Sensord
does not currently support reading alarm events from sensor devices.
.SH FILES
.I /etc/sensors.conf
.RS
The system wide configuration file. See
.BR sensors.conf (5)
for further details.
.RE
.I /var/log/sensors
.RS
The default sensor log file.
.RE
.SH "CONFORMING TO"
lm_sensors-2.x
.SH SEE ALSO
sensors.conf(5)
.SH AUTHORS
.B Sensord
was written by Merlin Hughes <merlin@merlin.org>. Chip-specific formatting
code was ripped from
.BR sensors
which was written by Frodo Looijaard <frodol@dds.nl>.