FreeBSD and Jail

Maxim
2005-12-03
2012-12-12
  • Maxim
    Maxim
    2005-12-03

    I have jail account under FreeBSD.
    I tried to run latest phpSysInfo-2.5-rc2.
    But I don't see ANY information on that page.
    Here is the screenshot:
    http://img521.imageshack.us/img521/8269/phpsysinfo25rc24bb.png

    Where is the problem?

     
    • Maxim
      Maxim
      2005-12-03

      Oh yes. Version is:
      FreeBSD 5.4-RELEASE #0

       
    • BeerMount
      BeerMount
      2005-12-03

      Maybe it isn't allowed access to the required information.

       
      • Maxim
        Maxim
        2005-12-03

        By: BeerMount - kpolberg
        RE: FreeBSD and Jail
        2005-12-03 11:38 
        Maybe it isn't allowed access to the required information.

        That is what I am trying to understand.
        What tools phpSysInfo uses to get information?
        In other words - how it works...

         
        • Michael Cramer
          Michael Cramer
          2005-12-03

          ok if i don't forgot something here is what we need for freebsd to get the required information:
          read files: /var/run/dmesg.boot
          execute programms: sysctl, hostname, who, vmstat, swapctl, swapinfo, df, mount, uname, netstat

           
          • Maxim
            Maxim
            2005-12-03

            There is no such file in jail :(
            /var/run/dmesg.boot

            Yes, there is such code in file "class.BSD.common.inc.php":

            class bsd_common {
              var $dmesg;
              // Our constructor
              // this function is run on the initialization of this class
              function bsd_common () {
                // initialize all the variables we need from our parent class
                $this->sysinfo();
              }
              // read /var/run/dmesg.boot, but only if we haven't already.
              function read_dmesg () {
                if (! $this->dmesg) {
                  $this->dmesg = file ('/var/run/dmesg.boot');
                }
                return $this->dmesg;

             
            • Michael Cramer
              Michael Cramer
              2005-12-03

              we really need to read this file, because it has many informations about the system.