{"id":395,"date":"2009-11-05T11:47:50","date_gmt":"2009-11-05T16:47:50","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=395"},"modified":"2009-11-05T11:48:45","modified_gmt":"2009-11-05T16:48:45","slug":"phpsysinfo-and-lm-sensors","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2009\/11\/phpsysinfo-and-lm-sensors\/","title":{"rendered":"PHPSysInfo and LM-Sensors"},"content":{"rendered":"<p>I wanted to get phpsysinfo working with the hardware sensors suite known as lm-sensors, but I really didn&#8217;t feel like working through all the problems myself.  But, despite my attempts to be lazy, I actually had to work a little bit at this.<\/p>\n<p>First of all, this is running on an Ubuntu Server 9.10 x86 &#8211; 2.6.31-14-generic-pae to be exact &#8211; using an old Dell Precision 360 box to be even more exact.  I installed <a href=\"http:\/\/sourceforge.net\/projects\/phpsysinfo\/\">phpsysinfo<\/a> version 2.5.4 and edited the config.php file to enable lm-sensors hardware monitoring.<\/p>\n<p>Unfortunately I get this error when I navigate to http:\/\/myserverip\/phpsysinfo:<\/p>\n<blockquote><p>No sensors found!<br \/>\nMake sure you loaded all the kernel drivers you need.<br \/>\nTry sensors-detect to find out which these are.<br \/>\nReturn value: 0<\/p><\/blockquote>\n<p>Wonderful.  So I have to install lm-sensors.  Now another site told me to do the following:<br \/>\n<code>sudo apt-get install lm-sensors i2c-tools read-edid sensord hddtemp sensors-applet<\/code><br \/>\nAfter the lengthy download (153MB I believe), hddtemp needed some input.  The defaults are fine &#8211; I selected to start the hddtemp service every reboot and run it on the default port 7634 as this is an internal only server.  If it&#8217;s an externally facing server you may want to exercise some caution when opening ports.<\/p>\n<p>You can verify that this is working by navigating to http:\/\/yourserverip:7634<br \/>\nIn my case I see:<\/p>\n<blockquote><p>|\/dev\/sg0|ST380011A|38|C||\/dev\/sda|ST380011A|38|C|<\/p><\/blockquote>\n<p>Which I can see the Seagate HD that&#8217;s 80GB IDE with two mount points running at 38C (100.4F).<\/p>\n<p>Now to setup for other sensors.  Go back to your terminal session and type:<br \/>\n<code>sudo sensors-detect<\/code><br \/>\nHit YES for everything.  When the script finishes you should probably reboot:<br \/>\n<code>reboot<\/code><\/p>\n<p>Reload your http:\/\/yourserverip\/phpsysinfo page &#8211; you should now see a bunch of other stuff added at the bottom:<br \/>\n<a href=\"http:\/\/it.thelibrarie.com\/weblog\/wp-content\/uploads\/2009\/11\/lm-sensors.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/it.thelibrarie.com\/weblog\/wp-content\/uploads\/2009\/11\/lm-sensors.png\" alt=\"lm-sensors\" title=\"lm-sensors\" width=\"947\" height=\"448\" class=\"alignnone size-full wp-image-396\" srcset=\"https:\/\/it.thelibrarie.com\/weblog\/wp-content\/uploads\/2009\/11\/lm-sensors.png 947w, https:\/\/it.thelibrarie.com\/weblog\/wp-content\/uploads\/2009\/11\/lm-sensors-300x141.png 300w\" sizes=\"auto, (max-width: 947px) 100vw, 947px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to get phpsysinfo working with the hardware sensors suite known as lm-sensors, but I really didn&#8217;t feel like working through all the problems myself. But, despite my attempts to be lazy, I actually had to work a little bit at this. First of all, this is running on an Ubuntu Server 9.10 x86 &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2009\/11\/phpsysinfo-and-lm-sensors\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">PHPSysInfo and LM-Sensors<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-395","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=395"}],"version-history":[{"count":2,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/395\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/395\/revisions\/398"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}