PhpSysInfo

From MediaWiki
Revision as of 08:51, 20 August 2007 by Paul Blankenbaker (talk | contribs) (How to get temperature and fan speed on phpSysInfo page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Adding Temperature and Fan Speeds

The phpSysInfo page can display temperatures and fan speeds if you configure it to do so. In order for this to work:

  • Your motherboard must be supported.
  • You must setup and start the lm_sensors service.
  • You must edit the: "/etc/phpsysinfo/config.php" file.

Setting Up The lm_sensors Service

To setup the lm_sensors service, you will need to:

  • Run the setup_sensors command (you can typically just press the Enter key and take the default value for each question asked).
  • Start the lm_sensors service.
  • Run the sensors command to verify that everything is working properly.

It should look something like the following:


phpSysInfo Configuration

Once you have the sensors command working, you can enable the sensor information in the web page rendered by phpSysInfo file, by modifiying the: "/etc/phpsysinfo/config.php" file.

Change the following line:

$sensor_program = ""; 

To:

$sensor_program = "lmsensors";