Search:  
Gentoo Wiki

HOWTO_sensord_graphing_using_rrd

Contents

This guide describes how to graph temperature, fan speeds and power voltage information available on most motherboards. The application that makes this possible is lm_sensors.

Setup

To be able to display sensors information on a webpage you will need to have a working sensors install, if you have already installed lm_sensors, you will need to re-install using the sensord USE flag in /etc/portage/package.use

To start sensord and add it to start at boot:

# /etc/init.d/sensord start
# rc-update add sensord default

You will also need to have rrdtool installed, with the rrdcgi USE flag in /etc/portage/package.use

Once these two items are installed, you are just about set up to graph the results.

you will also need to have a working apache install, along with the ability to run cgi pages from any location....

Generating the graphs

sensord --log-interval 0 \

 --load-average \
 --rrd-file /var/log/sensord.rrd


mkdir /var/www/sensord chown www-data:staff /var/www/sensord chmod a=rwxs /var/www/sensord


sensord --load-average \

 --rrd-file /var/log/sensord.rrd \
 --rrd-cgi /var/www/sensord \
 > /usr/lib/cgi-bin/sensord.cgi

chmod a+rx /usr/lib/cgi-bin/sensord.cgi

Links

note: this is using information from http://www.lm-sensors.org/wiki/man/sensord

Retrieved from "http://www.gentoo-wiki.info/HOWTO_sensord_graphing_using_rrd"

Last modified: Fri, 05 Sep 2008 08:24:00 +0000 Hits: 740