#396 hddtemp

closed
Erkan
None
5
2010-03-19
2010-02-05
cfakhir
No

On SVN revision 361 hddtemp fails.
hddtemp is in fact installed and working.

========================================================

define('PSI_HDD_TEMP', 'command');

========================================================

find_program(hddtemp)

program not found on the machine

./xml.php on line 45
./includes/output/class.WebpageXML.inc.php on line 138 in function run()
./includes/xml/class.XML.inc.php on line 449 in function getXml()
./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
./includes/xml/class.XML.inc.php on line 339 in function _buildMbinfo()
./includes/mb/class.Sensors.inc.php on line 60 in function getMBInfo()
./includes/mb/class.HDDTemp.inc.php on line 133 in function build()
./includes/mb/class.HDDTemp.inc.php on line 89 in function _temperature()
./includes/class.CommonFunctions.inc.php on line 98 in function executeProgram( "hddtemp", "/dev/sda /dev/sdb ", "" )

Discussion

  • Erkan
    Erkan
    2010-02-05

    Hello,

    Did you try to modify this :

    define('PSI_ADD_PATHS', false) in config.php file?

    To locate hddtemp :
    $> whereis hddtemp

    Regards,

     
  • Erkan
    Erkan
    2010-02-05

    • assigned_to: nobody --> jacky672
     
  • cfakhir
    cfakhir
    2010-02-06

    i did not modify anything other then |
    define('PSI_HDD_TEMP', 'command');

    it is a vanilla ubuntu server install.
    this feature did not require any other setting changes to work in previous versions.

     
  • Erkan
    Erkan
    2010-02-07

    Apache use "www-data" user which use "/bin/sh" instead of "/bin/bash". So "www-data" user didn't have "/usr/sbin" in there "PATH" env.

    Just modify config file like this :
    define('PSI_ADD_PATHS', '/usr/sbin')

    And tell use if it's ok please.

     
  • Erkan
    Erkan
    2010-02-22

    Hello,

    Can you confirm if that working now? :)

     
  • Erkan
    Erkan
    2010-03-19

    • status: open --> closed