HOWTO sensord graphing using rrd

From Gentoo Linux Wiki

Jump to: navigation, search
Under Development

This page is currently under development by: Peter

This page aims to provide you with: the ability to graph lm_sensors information using sensorsd.

Please do NOT edit this page until this note is removed. Thank you.

Concerns or Compliments? Please use the Discussion section.

This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related

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.

[edit] 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 sensorsd 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....

[edit] 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


[edit] Links


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

Personal tools