View previous topic :: View next topic |
Author |
Message |
SillyNoodlz -
Joined: 18 Oct 2005 Posts: 40 Location: France
|
Posted: Tue Oct 18, 2005 10:59 am Post subject: Abyss and Stats |
|
|
Is there a way to display the server statistics in the admin on a site for the public to see using PHP or something?
Also, does anybody know of software or a script so that you can display a graph of cpu/memory usage and bandwidth used? _________________ ~ Dan
One day, I'll finish this ...
My website : www.sillynoodlz.com |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Oct 18, 2005 4:39 pm Post subject: Re: Abyss and Stats |
|
|
DanzServ wrote: | Is there a way to display the server statistics in the admin on a site for the public to see using PHP or something? |
In PHP you could write something like:
Code: | <?php
echo "Total hits: " . $_ENV['X_ABYSS_STATS_SERVER_TOTAL'];
?> |
You don't even need PHP. A simple SSI (shtml) page can do the same with this code:
Code: | Total hits: <!-- echo var="X_ABYSS_STATS_SERVER_TOTAL" --> |
The list of all available variables is in http://www.aprelium.com/data/doc/2/abyssws-win-doc-html/cgivars.html .
Quote: | Also, does anybody know of software or a script so that you can display a graph of cpu/memory usage and bandwidth used? |
See http://www.aprelium.com/forum/viewtopic.php?t=7025 . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Oct 18, 2005 4:44 pm Post subject: |
|
|
If you want a general stats script, you can try the one I made. You can download it from http://www.abyssunderground.co.uk/scripts-serverstatusscript.php . Just choose the version of the script you would like.
There are two, one that has additional executables for the temperature and (for those without WMI) the second method for cpu usage.
The second is the one without the two executables. The first one is more difficult than the second to set up. The first is mainly copy, paste and edit the simple config file. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
SillyNoodlz -
Joined: 18 Oct 2005 Posts: 40 Location: France
|
Posted: Tue Oct 18, 2005 5:36 pm Post subject: |
|
|
Thank you very much for your replies!
I'll try them all out as soon as I get a moment! _________________ ~ Dan
One day, I'll finish this ...
My website : www.sillynoodlz.com |
|
Back to top |
|
 |
SillyNoodlz -
Joined: 18 Oct 2005 Posts: 40 Location: France
|
Posted: Wed Oct 19, 2005 1:06 am Post subject: |
|
|
Ok, so, using the information from Aprelium, and stealing sections of code from The Inquisitor, I've made myself a little stats page ...
The stats page is here :
http://www.danzserv.com/stats/
Auto refresh every 4 seconds. Let me know what you think. _________________ ~ Dan
One day, I'll finish this ...
My website : www.sillynoodlz.com |
|
Back to top |
|
 |
Goatie.dk -
Joined: 11 Feb 2005 Posts: 125 Location: Denmark > Herning
|
Posted: Wed Oct 19, 2005 6:26 am Post subject: |
|
|
Whoa.. nice done DanzServ...
Is it possible you could zip the little thingie you've made and post a link to it? _________________ The insane dane who loves AWS :D
http://home.goatie.dk <- pic = online.. no pic, guess ;P |
|
Back to top |
|
 |
SillyNoodlz -
Joined: 18 Oct 2005 Posts: 40 Location: France
|
Posted: Wed Oct 19, 2005 12:00 pm Post subject: |
|
|
Thanks!
You can download my script here :
http://www.danzserv.com/stats/danzserv.com_stats.zip
There are two files, index.php and memory.exe.
Just put them both onto your site, and open index.php.
If all goes well, that should work, you don't need to touch anything.
However, your pc needs to support that WMI thingy ...
My codeing isn't the best, so feel free to point out any problems ...
If you want a more complete script, then use The Inquisitor's one. _________________ ~ Dan
One day, I'll finish this ...
My website : www.sillynoodlz.com |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Oct 19, 2005 2:35 pm Post subject: |
|
|
Also try Server Stats. Server Stats has a feature that Abyss does not
currently have and thats to display the results in Percentages. LateR!
http://www.php4abyss.co.uk/server_stats.php
Sincerely , TRUSTpunk |
|
Back to top |
|
 |
|