Has anyone ever written a PHP script that will fetch the readings from the motherboard sensors. I am looking to make a web utility for our servers here. I have seen one that uses php on a unix server but I can not find any info on how to interface with the sensors. I think you can do this as well with ASP but I have found nothing that was either. Any help or a good kick in the right direction would be appreciated.

Aybabtu

    Not all motherboards have the same sensors. What exactly are you looking to monitor?

      I am looking to monitor the processor and ambiant temperatures of inside the case.

        This requires drivers, etc., that normally are OS-level issues. On some Unix platforms the resulting info may be available in the /proc system.

        <pre>
        <?
        readfile('/proc/cpuinfo');
        ?>
        </pre>

        On one of my systems I get

        processor : 0
        cpu : 740/750
        temperature : 26-28 C (uncalibrated)
        clock : 400MHz
        revision : 130.2 (pvr 0008 8202)
        bogomips : 796.26
        machine : PowerMac1,1
        motherboard : PowerMac1,1 MacRISC Power Macintosh
        L2 cache : 1024K unified
        memory : 128MB
        pmac-generation : NewWorld

          Write a Reply...