Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PhpSysInfo package problems

    Scheduled Pinned Locked Moved pfSense Packages
    30 Posts 7 Posters 11.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Perry
      last edited by

      I've got some errors when using the lates phpSysInfo-2.5.3-rc2 release

      File                            Line          Command                          Message
      common_functions.php 372 file_exists(/var/run/dmesg.boot) the file does not exist on your machine
      common_functions.php 158 find_program(vmstat)                   program not found on the machine

      So fare I've read that dmesg.boot could be a freebsd bug and atm i can do a dmesg > /var/run/dmesg.boot to fix it.

      the only thing i could fine concerning vmstat is from the freebsd handbook:

      If you have installed a different version of the kernel from the one that the system utilities have been built with, for example, a -CURRENT kernel on a -RELEASE, many system-status commands like ps and vmstat will not work any more. You should recompile and install a world built with the same version of the source tree as your kernel. This is one reason it is not normally a good idea to use a different version of the kernel from the rest of the operating system.

      Does anyone know what can be done or can explain why they are left out?

      pfSense.gif
      pfSense.gif_thumb
      ![pfSense with errors showing.gif](/public/imported_attachments/1/pfSense with errors showing.gif)
      ![pfSense with errors showing.gif_thumb](/public/imported_attachments/1/pfSense with errors showing.gif_thumb)

      /Perry
      doc.pfsense.org

      1 Reply Last reply Reply Quote 0
      • P
        Perry
        last edited by

        If any wants to try…...


        !!! Before installing read this !!!
        dmesg and vmstat issue are not fixed.
        dmesg can be added manually as shown in the howto below
        Memory Usage is not shown as correctly as if vmstat was available.

        Since the release 2.5.1 version are missing some features i will use 2.5.3-rc2

        My version of phpSysInfo can be downloaded here http://www.megaupload.com/dk/?d=LUMW5BVG

        change made to it:
        config.php.new -> config.php
        pfSense look alike template added
        config.php default settings changed

        or download the real rc2 from
        http://downloads.sourceforge.net/phpsysinfo/phpsysinfo-2.5.3-rc2.tar.gz?modtime=1172435539&big_mirror=0

        Small HowTo / guide

        From a pfSense default install ( 1.0.1-SNAPSHOT-03-08-2007 built on Tue Mar 13 00:39:49 EDT 2007 )

        Enable Secure Shell in System -> Advanced

        unpack the downloaded phpsysinfo file

        upload it to /usr/local/www/ ( i use winscp )

        In pfSense GUI go to Diagnostics -> Command and execute " dmesg > /var/run/dmesg.boot " ( do it after every reboot )

        View the result at http://My_pfSense_IP/phpsysinfo/index.php

        Extra: Add mbmon

        in Shell enter " pkg_add -r mbmon "

        In pfSense GUI go to Diagnostics -> Edit File and load " /usr/local/www/phpsysinfo/config.php "

        find and edit " $sensor_program = ""; " to " $sensor_program = "mbmon"; " and hit save

        View the result at http://My_pfSense_IP/phpsysinfo/index.php

        /Perry
        doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • J
          jeroen234
          last edited by

          i will see if i can find the failt in phpsysinfo
          /var/run/dmesg.boot is a wrong location only run files belong there not log files
          the correct location is
          /var/log/dmesg.boot

          1 Reply Last reply Reply Quote 0
          • P
            Perry
            last edited by

            Thx i didn't think it could be in another place, because everything works by default in normal freebsd 6.2 install

            going to edit class.BSD.common.inc.php

            /Perry
            doc.pfsense.org

            1 Reply Last reply Reply Quote 0
            • H
              hoba
              last edited by

              Maybe you can make a clean pfsense package out of this once it's working as expected so we can include it in the package repository ;)

              1 Reply Last reply Reply Quote 0
              • P
                Perry
                last edited by

                Will do Hoba, but atm i have no idea how to make a custom .tbz file

                basically i installed my first real freebsd with lighttpd & php5  a week ago…
                so i need links to guides, howtos, walkthrough etc..

                Build world is that like dealing with urbanization problems in China?
                Ports is that like Stargates? yes i can see a wormhole…..

                /Perry
                doc.pfsense.org

                1 Reply Last reply Reply Quote 0
                • H
                  hoba
                  last edited by

                  @Perry:

                  Build world is that like dealing with urbanization problems in China?
                  Ports is that like Stargates? yes i can see a wormhole…..

                  ;D

                  Check the developement section. You'll find some answers there. Additional to that have a look at one of the not so complicated packages and try some reverse-engeneering (nmap package might be a good start for this).

                  1 Reply Last reply Reply Quote 0
                  • P
                    Perry
                    last edited by

                    I have complete the phpsysinfo.inc & xml.
                    so for the final test i need the custom phpsysinfo.tbz
                    i've been reading and reading and still don't have a clue how to make it, i might be blind
                    all i can find is guides to do with things already in ports.
                    so any help would be appreciate.

                    /Perry
                    doc.pfsense.org

                    1 Reply Last reply Reply Quote 0
                    • S
                      sullrich
                      last edited by

                      Take a look at the ASSP package.  The files are still present and it used to explode a tarball to set the package up.

                      I have a feeling this is what your seeking.

                      1 Reply Last reply Reply Quote 0
                      • P
                        Perry
                        last edited by

                        Thx Scott for the link to a work around to my problem and adding the vmstat to the snapshot

                        here are the files so it can be added to the packages selection.

                        http://www.megaupload.com/dk/?d=AGY5X437

                        Time to clam my own beer bounty :D

                        /Perry
                        doc.pfsense.org

                        1 Reply Last reply Reply Quote 0
                        • S
                          sullrich
                          last edited by

                          Sounds good.  I'll take a look at it a bit later today.  Prod me if nothing happens in the next 2 days, I am playing major catchup right now.

                          1 Reply Last reply Reply Quote 0
                          • P
                            Perry
                            last edited by

                            No longer a release candidate

                            http://www.megaupload.com/dk/?d=P5BGSK92

                            /Perry
                            doc.pfsense.org

                            1 Reply Last reply Reply Quote 0
                            • S
                              sullrich
                              last edited by

                              Commited, please test

                              1 Reply Last reply Reply Quote 0
                              • P
                                Perry
                                last edited by

                                in the phpsysinfo.xml  :'(
                                http://http://www.pfsense.com/packages/ALL/phpsysinfo.tgz

                                should be http://http://www.pfsense.com/packages/ALL/phpSysInfo-2.5.3.tgz

                                sry

                                /Perry
                                doc.pfsense.org

                                1 Reply Last reply Reply Quote 0
                                • D
                                  dvserg
                                  last edited by

                                  Downloading package configuration file... done.
                                  Saving updated package information... done.
                                  Downloading phpSysInfo and its dependencies... done.
                                  Checking for successful package installation... failed!
                                  
                                  Installation aborted.
                                  

                                  mbmon-205_3.tbz - loaded 294 byte =>

                                  
                                  <title>404 Not Found</title>
                                  
                                  # Not Found
                                  
                                  The requested URL /packages/ALL/mbmon-205_3.tbz was not found on this server.
                                  
                                  * * *
                                  
                                  <address>Apache/1.3.37 Server at www.pfsense.com Port 80</address>
                                  
                                  

                                  …/packages/ALL/mbmon-205_3.tbz
                                  need correct to
                                  …/packages/All/mbmon-205_3.tbz

                                  SquidGuardDoc EN  RU Tutorial
                                  Localization ru_PFSense

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    Perry
                                    last edited by

                                    Thx

                                    now i hope everything is right… fingers cross

                                    http://www.megaupload.com/dk/?d=99ZGP0PT

                                    /Perry
                                    doc.pfsense.org

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dvserg
                                      last edited by

                                      Ohm.. sorry - bad translator  ::)

                                      SquidGuardDoc EN  RU Tutorial
                                      Localization ru_PFSense

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        Perry
                                        last edited by

                                        The fixed files needs to be added first….

                                        /Perry
                                        doc.pfsense.org

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          sullrich
                                          last edited by

                                          I have fixed the filenames.  Please test again.

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            Perry
                                            last edited by

                                            could u replace all the files

                                            http://www.megaupload.com/dk/?d=99ZGP0PT

                                            /Perry
                                            doc.pfsense.org

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.