show lm-sensors cpu temp in FreeBX panel or Trixbox System panel

MiB
Posts: 29
Member Since:
2007-10-20

Hey guys, has anyone figured a way to incorporate lm-sensors cpu temp and fan rpm so we can display it on the FreePBX control panel next to CPU usage ? Or if it's easier on the Trix System panel ?



kerryg
Posts: 6793
Member Since:
2006-05-31
Its pretty hard to make it

Its pretty hard to make it generic because sensors for every motherboard are different.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



MiB
Posts: 29
Member Since:
2007-10-20
Hi Kerry, I agree while the

Hi Kerry,
I agree while the actual sensors themselves vary among various boards, lm-sensors generally takes care of this during the initial #sensors-detect setup.

However once setup the '#sensors' command seems to be universal across all boards to obtain the sensor's readings.

Couldn't it be implemented with a simple checkbox or enable/disable feature on the Trix System page, once enabled would simply show the output of #sensors, which should work for everybody that has lm-sensors installed and setup ?

For instance using Webmin, in System and Server status, the lm-sensors monitoring module supports reading the output of #sensors, which would be universal accross all hardware if lm-sensors is installed and config'd. If not it just tells you it's not setup.



kerryg
Posts: 6793
Member Since:
2006-05-31
If someone would like to

If someone would like to work on this and provide a framework for how we could implement it, we would be happy to. Right now, because of our understanding of the different sensors for different motherboards we are not convinced it could be done well enough to implement, but we are happy to be proven wrong.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



vprea
Posts: 21
Member Since:
2007-09-18
Well, I've found on how to

Well, I've found how to show lm-sensors information on Trixbox's 2.6 System Information. It's very easy:

- nano /var/www/html/maint/modules/phpsysinfo/config.php

Find the line that says define('sensorProgram', false);
and replace it with: define('sensorProgram', 'lmsensors');

That's all!! now you have sensors information. First of all, make sure you have lm-sensors installed. Try running 'sensors' command and you should get sensors information. If it doesn't work, google around and find how to install it.



cyrano
Posts: 12
Member Since:
2008-09-14
where?

where will the sensor infor show??

thanks for your help



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.