SME Pages wellsi.com


lm_sensors for SME - test software

1st May 2004 Ian Wells

Introduction

This page assumes that you are running lm_sensors on an SME Server. It complements lm_sensors for SME

Viewing the results of lm_sensors

Normally you would use Shad L. Lords' System Monitor for graphs of the data.

However before this was available I wrote a Server Manager Panel and a cgi script to see the data. This page gives details of these in case anyone finds them useful.

Server Manager Panel

This is a simple panel, although it appears to work.

  1. Download lmsensor and ensure that the permissions are 4750 root admin (one or more of the following may be needed)
# chown root lmsensor
# chgrp admin lmsensor
# chmod 4750 lmsensor
  1. Install the panel, it will appear as Sensor Information under Miscellaneous
# cp lmsensor /etc/e-smith/web/functions/
# ln -s /etc/e-smith/web/functions/lmsensor /etc/e-smith/web/panels/manager/cgi-bin/lmsensor

You should see the output from all sensors, which may not be what you want.
To restrict the output to a specific sensor edit /etc/e-smith/web/functions/lmsensor, line 66, and add the sensor name.

Simple Temperature CGI

An alternative to the panel is temperature, a small CGI script which displays the current temperature.
Line 44 reads the sensor information, and should be modified to suit.
This is not supposed to be a polished script, just a start on which to build.