Still more issues on FreeBSD8

Help
2010-01-30
2012-12-12
1 2 > >> (Page 1 of 2)
  • curtis hacker

    curtis hacker - 2010-01-30

    Apcupsd doesn't work anymore on 3.0.2
    >apcaccess program not found

    Still no hardware listed in the hardware section other than cpu type.

    RC6 is the latest working code that gives all the info.

     
  • Erkan

    Erkan - 2010-01-30

    Hello,

    Thanks for your report. I will install FreeBSD 8 on VirtualBox an try to debug it.

     
  • Erkan

    Erkan - 2010-01-31

    "Apcupsd doesn't work anymore on 3.0.2
    >apcaccess program not found"

    Did you try to update the PATH ?
    config.php : define('PSI_ADD_PATHS', false);

    Can you post the output of apcaccess ?

    Thanks,

     
  • curtis hacker

    curtis hacker - 2010-02-08

    adding the path seemed to work with the svn download for apcupsd / apcaccess

    Some info finally in the devices area.. not fully complete thou

     
  • Erkan

    Erkan - 2010-02-16

    Hello,

    "Some info finally in the devices area.. not fully complete thou "

    Can you explain it please? Which information missing ?

    Regards,

     
  • Gabriel Lavoie

    Gabriel Lavoie - 2010-03-19

    Here, on FreeBSD 7.1, no PCI devices are shown, no USB devices are shown and there is no device description for everything else. All this information was available with phpSysInfo 2.X.

     
  • Erkan

    Erkan - 2010-03-19

    Hello,

    Ok thanks, we will working on it.

     
  • Erkan

    Erkan - 2010-06-04

    Can you try to modify these lines in "phpsysinfo\includes\os\class.BSDCommon.inc.php"…and tell me if it resolv the problem please?

                       
    $parts = preg_split("/rebooting/", $buf, -1, PREG_SPLIT_NO_EMPTY);
    $this->_dmesg = preg_split("/\n/", $parts[count($parts) - 1], -1, PREG_SPLIT_NO_EMPTY);
    

    by

    //$parts = preg_split("/rebooting/", $buf, -1, PREG_SPLIT_NO_EMPTY);
    $this->_dmesg = preg_split("/\n/", $buf, -1, PREG_SPLIT_NO_EMPTY);
    
     
  • Anonymous - 2010-06-23

    Hi jacky672, After I report phpsysinfo in Freebsd8 issue, I svn update phpsysinfo version to  374, That some issue pci list is empty, and I install pciutils form  '/usr/ports/sysutils/pciutils' in FreeBSD ports. Detail bug information below as.

    Oh, I'm sorry. Something seems to be wrong.
    /usr/local/bin/lspci
    lspci: fbsd_init: /dev/pci open failed
    Return value: 1
    ./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 428 in function _buildXml()
    ./includes/os/class.OS.inc.php on line 70 in function getSys()
    ./includes/os/class.FreeBSD.inc.php on line 120 in function build()
    ./includes/os/class.BSDCommon.inc.php on line 454 in function build()
    ./includes/os/class.BSDCommon.inc.php on line 331 in function pci()
    ./includes/class.Parser.inc.php on line 36 in function lspci()
    ./includes/class.CommonFunctions.inc.php on line 123 in function executeProgram( "lspci", "", "", true )
    

    Another Issue is Coretemp, I set config.php to open Coretemp option found that temprature is empty when I load coretemp.ko in kernel module. Detail information below as.

    irwin@weblon[6:07pm]/home/www/phpsysinfo>kldstat
    Id Refs Address    Size     Name
     1   35 0xc0400000 719b0c   kernel
     2    1 0xc0b1a000 584c     vesa.ko
     3    1 0xc0b20000 8f74     linprocfs.ko
     4    2 0xc0b29000 2d8d4    linux.ko
     5    1 0xc0b57000 1abc     coretemp.ko
     6    1 0xc582d000 3000     pflog.ko
     7    1 0xc583e000 36000    pf.ko
     8    4 0xc593a000 b000     netgraph.ko
     9    1 0xc59cd000 4000     ng_ether.ko
    10    1 0xc59d6000 6000     ng_pppoe.ko
    11    1 0xc59de000 4000     ng_socket.ko
    12    1 0xc5fde000 9000     i915.ko
    irwin@weblon[6:07pm]/home/www/phpsysinfo>sysctl -a | grep temp
    net.inet6.ip6.use_tempaddr: 0
    net.inet6.ip6.temppltime: 86400
    net.inet6.ip6.tempvltime: 604800
    net.inet6.ip6.prefer_tempaddr: 0
    hw.usb.template: 0
    hw.acpi.thermal.tz0.temperature: 30.0C
    dev.cpu.0.temperature: 52.0C
    dev.cpu.1.temperature: 45.0C
    dev.coretemp.0.%desc: CPU On-Die Thermal Sensors
    dev.coretemp.0.%driver: coretemp
    dev.coretemp.0.%parent: cpu0
    dev.coretemp.1.%desc: CPU On-Die Thermal Sensors
    dev.coretemp.1.%driver: coretemp
    dev.coretemp.1.%parent: cpu1
    

    Thank for your help,

    Irwin

     
  • Erkan

    Erkan - 2010-06-24

    Hello,

    Thanks for the report.
    We have some open issues with BSD, if you want to contribute to help us… :)

    Regards,

     
  • Jonathan Swan

    Jonathan Swan - 2011-01-29

    The reason this:
    lspci: fbsd_init: /dev/pci open failed

    occurs is because the webserver account doesn't have access to /dev/pci, if you chmod it to 4555 so it runs as root it won't complain about that, but I got another problem afterwards:
    index.php
    Error loading XML document!

    xml.php
    XML Parsing Error: junk after document element
    Location: http://home.swanhold.com.au/sysinfo/xml.php
    Line Number 2, Column 1:<b>Fatal error</b>:  Call to a member function equals() on a non-object in <b>/usr/local/www/phpsysinfo/includes/to/class.System.inc.php</b> on line <b>223</b><br />
    ^

    Also noted that it doesn't seem to be grabbing the network values correctly, judging from  netstat -nibd, it looks like it's putting the Opkts colomn from netstat to Err on phpsysinfo and leaving the remainder colomns blank.

     
  • Jonathan Swan

    Jonathan Swan - 2011-01-29

    Whoops, can that url please be edited out? Don't seem to have the option to do it myself.

     
  • Erik S

    Erik S - 2011-07-11

    I changed some things in class.FreeBSD.inc.php to get the correct network values
    Replacing this, starting at line #70:

    if (strlen($ar_buf[3]) < 15) {
      $dev->setTxBytes($ar_buf[8]);
      $dev->setRxBytes($ar_buf[5]);
      $dev->setDrops($ar_buf[10]);
      $dev->setErrors($ar_buf[4] + $ar_buf[7]);
    } else {
      $dev->setTxBytes($ar_buf[9]);
      $dev->setRxBytes($ar_buf[6]);
      $dev->setErrors($ar_buf[5] + $ar_buf[8]);
      $dev->setDrops($ar_buf[11]);
    }
    

    with this:

    if (strlen($ar_buf[3]) < 15) {
      $dev->setTxBytes($ar_buf[5]);
      $dev->setRxBytes($ar_buf[9]);
      $dev->setDrops($ar_buf[11]);
      $dev->setErrors($ar_buf[4] + $ar_buf[8]);
    } else {
      $dev->setTxBytes($ar_buf[7]);
      $dev->setRxBytes($ar_buf[10]);
      $dev->setErrors($ar_buf[5] + $ar_buf[9]);
       $dev->setDrops($ar_buf[12]);
    }
    
     
  • Erkan

    Erkan - 2011-07-11

    Hi,

    Thanks for your contribution. I will commit this patch asap.

    Regards,

     
  • Jonathan Swan

    Jonathan Swan - 2011-07-11

    thanks yoji, with the loopback I was getting a value of zero for sent, I had to change it to:

    if (strlen($ar_buf[3]) < 15) {
      $dev->setTxBytes($ar_buf[6]);
      $dev->setRxBytes($ar_buf[9]);
      $dev->setDrops($ar_buf[11]);
      $dev->setErrors($ar_buf[4] + $ar_buf[8]);
    } else {
      $dev->setTxBytes($ar_buf[7]);
      $dev->setRxBytes($ar_buf[10]);
      $dev->setErrors($ar_buf[5] + $ar_buf[9]);
       $dev->setDrops($ar_buf[12]);
    }
    
     
  • Erik S

    Erik S - 2011-07-12

    Oh, i must have missed that one, thanks for noticing it

     
  • Erik S

    Erik S - 2011-07-12

    Today I managed to get the PCI information working, at least on my machine, i made some changes in class.BSDCommon.inc.php
    I edited the pci() function to look like this:

    protected function pci()
    {
      if (!is_array($results = Parser::lspci()) || !is_array($results = Parser::pciconf())) {
        foreach ($this->readdmesg() as $line) {
          if (preg_match("/".$this->_PCIRegExp1."/", $line, $ar_buf)) {
            $dev = new HWDevice();
            $dev->setName($ar_buf[1].": ".$ar_buf[2]);
            $results[] = $dev;
          } elseif (preg_match("/".$this->_PCIRegExp2."/", $line, $ar_buf)) {
            $dev = new HWDevice();
            $dev->setName($ar_buf[1].": ".$ar_buf[2]);
            $results[] = $dev;
          }
        }
      }
      foreach ($results as $dev) {
        $this->sys->setPciDevices($dev);
      }
    }
    
     
  • Anonymous - 2011-08-13

    Hi all,

    I found some issue and fix them:

    PSI: 3.0.13
    OS: FreeBSD 8.2
    Apache: 2.0
    PHP: 5.2.14

    One into : class.PS.inc.php
    Line: 120
    Code:


    $items[$row][$row] = &$items[$row];


    Need to change it add line before:
    Code:


                if ($row !== $row)
                       $items[$row][$row] = &$items[$row];


    And an other FIX for problem when MBMon is printing error into STDERR and in that case it's fails.
    Example:
    $ mbmon -c 1 -r
    ioctl(smb0:open): No such file or directory

    I come to idea to redirect StdErr to file and in this case it's work.
    so in file: class.MBMon.inc.php
    line: 55:
                CommonFunctions::executeProgram('mbmon', '-c 1 -r', $lines);
    Need to change to
                CommonFunctions::executeProgram('mbmon', '-c 1 -r 2> /tmp/mbmon.error.log', $lines);

    That's it

     
  • Peter

    Peter - 2011-08-14

    Hello, guys
    Is there any follow up on this maybe? Google search yielded nothing useful on this topic

    [root@* phpsysinfo]# sysctl dev.cpu.0.temperature
    dev.cpu.0.temperature: 54.0C
    

    The system version is:

    FreeBSD 8.1-STABLE #0: Wed Sep  1 05:19:23 CEST 2010     pero@*:/usr/obj/usr/src/sys/FOO
    

    The variable(s) in question are those in config.php (of phpsysinfo):

    define('PSI_SENSOR_PROGRAM', 'Coretemp');
    define('PSI_SENSOR_ACCESS', 'command');
    

    The temperature section is visible but, there are no "live" feeds only the limit temperatures.
    Am I missing something obvious here? Do I need to change: PSI_SENSOR_ACCESS to something else then 'command' ?
    Thanks very much,
    Peter

     
  • Erkan

    Erkan - 2011-08-14

    Hi,

    Thanks for your report. Today I just commit the two patch. But for the second patch I don't understand why the command failed? The executeProgram function only return stdout (/includes/class.CommonFunctions.inc.php) line 261

    Regards,

     
  • Mieczysław Nalewaj

    may be a better solution would be instead:
    CommonFunctions::executeProgram('mbmon', '-c 1 -r 2> /tmp/mbmon.error.log', $lines);

    use:
    CommonFunctions::executeProgram('mbmon', '-c 1 -r 2', $lines, PSI_DEBUG);

    What is your opinion?

     
  • Erkan

    Erkan - 2011-08-17

    Hi namiltd,

    Yes I prefer your solution, can you commit this please?

    @motorcek: can you also test this solution?

    Thanks,

     
1 2 > >> (Page 1 of 2)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks