phpsysinfo Windows IIS and LoadAvg

BeerMount
2005-11-30
2012-12-12
  • BeerMount

    BeerMount - 2005-11-30

    I have currently setup phpsysinfo on a Windows 2003 server running IIS 6.0 (http://system.jaatun.info), but i can't get CPU load to show up. Anyone care to give me a direction?

     
    • Anonymous - 2005-12-02

      can you please open a bug report, it's a code issue, data has wrong place in array

       
    • BeerMount

      BeerMount - 2005-12-02

      What exactly do you want me to include in this bug report?

      Might be a dumb question, but then again im not used to submitting bug reports :P

      Oh, and im using milleniumv3 WINNT support, since i could not get the original code to work with IIS.

       
      • Edwin Meester

        Edwin Meester - 2005-12-02

        I've updated the package:

        fixed the loadavg (I hope, not tested yet)

        http://phpsysinfo.qme.nl/phpsysinfo.zip

         
        • BeerMount

          BeerMount - 2005-12-02

          Thanks, it worked out ok now,by the way how is the LoadAvg calculated? Because, it could have been just me, when i tried to stress the system with super_pi and the load wasn't high enough over a long enough period of time.

           
          • BeerMount

            BeerMount - 2005-12-03

            Hehe, now millenniumv3 some more for you to fix, if you look at http://system.jaatun.info , you see that the canonical hostname is detected wrong, it actualy displays my LAN hostname, I don't know if there is a way around this, but just something I found out.

            Second, the current users, but you already knew that.

            Third it doesn't detect my IP, don't know why, but the original release doesn't either.

            Fourth it skips some of my IDE devices, which the original relase doesn't. But then again, it does come up with some of my SCSI devices which the original release doesn't.

            Fifth, with the latest relase you provided me with, it shows the Linux way of showing used memory.

            But, these are just tiny problems, thanks again for providing this superb level of support, same to you bigmichi1.

             
    • BeerMount

      BeerMount - 2005-12-02

      When im just using phpsysinfo-2.5 RC2 i get this.

      Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `WinMgmts:\\.': ' in C:\Inetpub\phpsysinfo\phpsysinfo\phpsysinfo\includes\os\class.WINNT.inc.php:24 Stack trace: #0 C:\Inetpub\phpsysinfo\phpsysinfo\phpsysinfo\includes\os\class.WINNT.inc.php(24): com->com('WinMgmts:\\.') #1 C:\Inetpub\phpsysinfo\phpsysinfo\phpsysinfo\index.php(133): sysinfo->sysinfo() #2 {main} thrown in C:\Inetpub\phpsysinfo\phpsysinfo\phpsysinfo\includes\os\class.WINNT.inc.php on line 24

      You can check yourself on http://system.jaatun.info/phpsysinfo/phpsysinfo/

       
      • Anonymous - 2005-12-02

        many bugs reported the same issue. so why we get this?

        it's a security related problem, couldn't be really solved at php side.
        for iis:
        the problem is related to iis and script access to wmi. the I_USR dowsn't have the right to use wmi-data, so we can't get a connection to wmi. three possible ways from my experience as an win-admin:
        first we give the I_USR the permission to do this, but this is highly critical and insecure, so i don't desribe this way any further.
        second, i prefer this, is to go in the iis admin and set up an authetication method for the directory where phpsysinfo resists. this can be done at the property page of the folder. and then you can see the information when logging in at the page as an user with admin rights (member in the admin group) and you will get the output.
        third, use the version provided by milleniumv3, where an extra deamon provides the data.

         
        • BeerMount

          BeerMount - 2005-12-02

          Ok, I will be using the third option for now, will probably check out the second option also. Thanks alot for your response.

           
          • BeerMount

            BeerMount - 2005-12-03

            Ok, I have now tested some more, and LoadAvg won't work with this option, the bright side, is that it gets my canonical hostname right, it also detects my IDE drives correct. But neither of them(milleniumv3 and yours) is able to detect my IP, only solution I have found so far, is to define N.A. as my IP.

            Oh and it also detects number of users correct.

            Picture of how it looks:
            http://system.jaatun.info/phpsysinfo.PNG

             
    • Edwin Meester

      Edwin Meester - 2005-12-02

      Also fixed the 13GB bug in Network stats (Workaround, cause Windows uses Dword, which is 13GB :D)