Lm sensors: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
== USE-Flags == | == USE-Flags == | ||
{{ | {{File|/etc/portage/package.use| | ||
<pre> | <pre> | ||
net-analyzer/rrdtool rrdcgi | net-analyzer/rrdtool rrdcgi | ||
| Line 28: | Line 28: | ||
== Packages == | == Packages == | ||
{{ | {{Code|emerge lm_sensors -pv| | ||
<pre> | <pre> | ||
[ebuild N ] dev-perl/XML-Parser-2.36 225 kB | [ebuild N ] dev-perl/XML-Parser-2.36 225 kB | ||
| Line 44: | Line 44: | ||
== Configuration == | == Configuration == | ||
{{ | {{File|/etc/portage/package.unmask| | ||
<pre> | <pre> | ||
sys-apps/lm_sensors | sys-apps/lm_sensors | ||
| Line 51: | Line 51: | ||
{{ | {{Root|emerge lm_sensors}} | ||
If you want to use rrd sensord then emerge at least one font. | If you want to use rrd sensord then emerge at least one font. | ||
{{ | {{Root|emerge dejavu}} | ||
== Configuration == | == Configuration == | ||
| Line 61: | Line 61: | ||
=== lm_sensors === | === lm_sensors === | ||
{{ | {{Root|sensors-detect}} | ||
answer everything with YES. | answer everything with YES. | ||
{{ | {{Root|/etc/init.d/lm_sensors start}} | ||
{{ | {{Root|rc-update add lm_sensors default}} | ||
=== sensord === | === sensord === | ||
| Line 73: | Line 73: | ||
See [[lighttpd]] for about how to setup CGI .rrd file proccessing first. | See [[lighttpd]] for about how to setup CGI .rrd file proccessing first. | ||
{{ | {{File|/etc/init.d/sensord| | ||
<pre> | <pre> | ||
CONFIG=/etc/sensors3.conf | CONFIG=/etc/sensors3.conf | ||
| Line 79: | Line 79: | ||
}} | }} | ||
{{ | {{File|/etc/conf.d/sensord| | ||
<pre> | <pre> | ||
SENSORD_OPTIONS="--rrd-file /var/log/sensord.rrd" | SENSORD_OPTIONS="--rrd-file /var/log/sensord.rrd" | ||
| Line 85: | Line 85: | ||
}} | }} | ||
{{ | {{Root|mkdir -p /var/www/localhost/htdocs/sensord}} | ||
{{ | {{Root|chown -R lighttpd:root /var/www/localhost/htdocs/sensord}} | ||
{{ | {{Root|<nowiki>/usr/sbin/sensord --config-file /etc/sensors3.conf --rrd-file /var/log/sensord.rrd --rrd-cgi="../htdocs/sensord" > /var/www/localhost/cgi-bin/sensord.rrd</nowiki>}} | ||
{{ | {{Root|/etc/init.d/sensord start}} | ||
{{ | {{Root|rc-update add sensord default}} | ||
Latest revision as of 15:12, 27 July 2011
Description
Monitors hardware sensors.
Kernel settings
| Linux Kernel Configuration: Kernel .config |
Device Drivers ---> -*- I2C support ---> <*> I2C device interface [*] Autoselect pertinent helper modules I2C Hardware Bus support ---> <*> Intel 82801 (ICH) -*- Hardware Monitoring support ---> <*> Intel Core/Core2/Atom temperature sensor |
USE-Flags
File: /etc/portage/package.use
net-analyzer/rrdtool rrdcgi sys-apps/lm_sensors sensord x11-libs/cairo svg
Packages
| Code: emerge lm_sensors -pv |
[ebuild N ] dev-perl/XML-Parser-2.36 225 kB [ebuild N ] x11-misc/util-macros-1.2.2 49 kB [ebuild N ] dev-util/intltool-0.40.5 138 kB [ebuild N ] x11-libs/pixman-0.14.0-r1 USE="mmx sse2 (-altivec) -debug" 345 kB [ebuild N ] x11-libs/cairo-1.8.8 USE="svg -X -cleartype -debug -directfb -doc -glitz -opengl -xcb" 6,491 kB [ebuild N ] x11-libs/pango-1.24.5 USE="-X -debug -doc" 1,485 kB [ebuild N ] net-analyzer/rrdtool-1.3.8-r1 USE="nls perl python -doc -rrdcgi -ruby -tcl" 998 kB [ebuild N ] sys-apps/lm_sensors-3.0.3 USE="sensord" 150 kB |
Installation
Configuration
File: /etc/portage/package.unmask
sys-apps/lm_sensors
# emerge lm_sensors
If you want to use rrd sensord then emerge at least one font.
# emerge dejavu
Configuration
lm_sensors
# sensors-detect
answer everything with YES.
# /etc/init.d/lm_sensors start
# rc-update add lm_sensors default
sensord
See lighttpd for about how to setup CGI .rrd file proccessing first.
File: /etc/init.d/sensord
CONFIG=/etc/sensors3.conf
File: /etc/conf.d/sensord
SENSORD_OPTIONS="--rrd-file /var/log/sensord.rrd"
# mkdir -p /var/www/localhost/htdocs/sensord
# chown -R lighttpd:root /var/www/localhost/htdocs/sensord
# /usr/sbin/sensord --config-file /etc/sensors3.conf --rrd-file /var/log/sensord.rrd --rrd-cgi="../htdocs/sensord" > /var/www/localhost/cgi-bin/sensord.rrd
# /etc/init.d/sensord start
# rc-update add sensord default