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 ?
show lm-sensors cpu temp in FreeBX panel or Trixbox System panel
Its pretty hard to make it generic because sensors for every motherboard are different.
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.
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.
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.
where will the sensor infor show??
thanks for your help
Member Since:
2007-10-20