Lm sensors: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
No edit summary
Tgurr (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 18: Line 18:


== USE-Flags ==
== USE-Flags ==
{{Box File|/etc/portage/package.use|
{{File|/etc/portage/package.use|
<pre>
<pre>
net-analyzer/rrdtool rrdcgi
net-analyzer/rrdtool rrdcgi
Line 28: Line 28:


== Packages ==
== Packages ==
{{Box Code|emerge lm_sensors -pv|
{{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 ==
{{Box File|/etc/portage/package.unmask|
{{File|/etc/portage/package.unmask|
<pre>
<pre>
sys-apps/lm_sensors
sys-apps/lm_sensors
Line 51: Line 51:




{{Codeline|# emerge lm_sensors}}
{{Root|emerge lm_sensors}}


If you want to use rrd sensord then emerge at least one font.
{{Root|emerge dejavu}}


== Configuration ==
== Configuration ==
Line 58: Line 61:
=== lm_sensors ===
=== lm_sensors ===


{{Codeline|# sensors-detect}}
{{Root|sensors-detect}}


answer everything with YES.
answer everything with YES.


{{Codeline|# /etc/init.d/lm_sensors start}}
{{Root|/etc/init.d/lm_sensors start}}


{{Codeline|# rc-update add lm_sensors default}}
{{Root|rc-update add lm_sensors default}}


=== sensord ===
=== sensord ===
Line 70: 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.


{{Box File|/etc/init.d/sensord|
{{File|/etc/init.d/sensord|
<pre>
<pre>
CONFIG=/etc/sensors3.conf
CONFIG=/etc/sensors3.conf
Line 76: Line 79:
}}
}}


{{Box File|/etc/conf.d/sensord|
{{File|/etc/conf.d/sensord|
<pre>
<pre>
SENSORD_OPTIONS="--rrd-file /var/log/sensord.rrd"
SENSORD_OPTIONS="--rrd-file /var/log/sensord.rrd"
Line 82: Line 85:
}}
}}


{{Codeline|# mkdir -p /var/www/localhost/htdocs/sensord}}
{{Root|mkdir -p /var/www/localhost/htdocs/sensord}}
 
{{Root|chown -R lighttpd:root /var/www/localhost/htdocs/sensord}}


{{Codeline|<nowiki># /usr/sbin/sensord --config-file /etc/sensors3.conf --rrd-file /var/log/sensord.rrd --rrd-cgi=sensord > /var/www/localhost/htdocs/sensord/sensord.rrd</nowiki>}}
{{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>}}


{{Codeline|# /etc/init.d/sensord start}}
{{Root|/etc/init.d/sensord start}}


{{Codeline|# rc-update add sensord default}}
{{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