Abyss and Stats

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
SillyNoodlz
-


Joined: 18 Oct 2005
Posts: 40
Location: France

PostPosted: Tue Oct 18, 2005 10:59 am    Post subject: Abyss and Stats Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Oct 18, 2005 4:39 pm    Post subject: Re: Abyss and Stats Reply with quote

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 View user's profile Send private message Send e-mail
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Oct 18, 2005 4:44 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
SillyNoodlz
-


Joined: 18 Oct 2005
Posts: 40
Location: France

PostPosted: Tue Oct 18, 2005 5:36 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SillyNoodlz
-


Joined: 18 Oct 2005
Posts: 40
Location: France

PostPosted: Wed Oct 19, 2005 1:06 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Goatie.dk
-


Joined: 11 Feb 2005
Posts: 125
Location: Denmark > Herning

PostPosted: Wed Oct 19, 2005 6:26 am    Post subject: Reply with quote

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 View user's profile Send private message
SillyNoodlz
-


Joined: 18 Oct 2005
Posts: 40
Location: France

PostPosted: Wed Oct 19, 2005 12:00 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Oct 19, 2005 2:35 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group