New AbyssUnderground.co.uk server status script (v2)

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  

Good script?
Yes
91%
 91%  [ 11 ]
No
8%
 8%  [ 1 ]
Total Votes : 12

Author Message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Nov 29, 2005 8:27 pm    Post subject: New AbyssUnderground.co.uk server status script (v2) Reply with quote

Ive created a newer version of my server status script.

DEMO: http://www.abyssunderground.co.uk/system/2/index.php

BETA DOWNLOADS
http://www.abyssunderground.co.uk/system/2/beta/beta10.zip - BETA V1.0
http://www.abyssunderground.co.uk/system/2/beta/beta11.zip - BETA V1.1

FINAL DOWNLOADS
http://www.abyssunderground.co.uk/system/2/final/final12.zip - FINAL V1.2



Features:

- Date/Time display
- Uptime display
- CPU Usage display
- CPU Usage Graph
- CPU Type display
- CPU Speed display
- Operating System display
- RAM Usage display

- NIC Sent display
- NIC Received display
- Abyss Web Server Sent display
- Client IP display
- Client Reverse DNS display

- Automatic detection of all hard drives and displays Capacity, Free space, Used space, Used % and Free %.

- Automatic service status for PHP, ASP, MySQL and FTP


Please cast your vote to tell me if its a good script or not.
Please post your comments.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk


Last edited by AbyssUnderground on Sat Jan 07, 2006 5:29 pm; edited 7 times in total
Back to top View user's profile Send private message Visit poster's website
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Tue Nov 29, 2005 9:22 pm    Post subject: Reply with quote

looks nice and loads quicker than the other one.. just hope its abit easier to edit as it took me ages to figure out how to edit the first one lol
_________________
http://www.jibba-jabba.net | http://www.mosthauntedforum.com
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Nov 29, 2005 9:24 pm    Post subject: Reply with quote

this one is 100% n00b friendly ;-)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Wed Nov 30, 2005 12:21 am    Post subject: Reply with quote

Get the BETA download here:

http://www.abyssunderground.co.uk/system/2/beta/beta10.zip

Please remember to leave me feedback. Thanks :-)
_________________
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: Wed Nov 30, 2005 12:33 am    Post subject: Reply with quote

Nice script, seems to work fine ... :-)

http://host.danzserv.com/test/andy/beta10/

The only complaint is that it's a little slow to load ...
_________________
~ 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
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Wed Nov 30, 2005 12:35 am    Post subject: Reply with quote

Edit the config.php and change some of the "take a while to load" options to 0. The main culprits are cpu, windows version, cpu type, operating system and reverse DNS. The rest are almost instant.

This can't be helped unfortunately.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Thu Dec 01, 2005 3:52 pm    Post subject: Reply with quote

hrmmmm well i've just downloaded this beta version but erm it don't seem to work properly for me.. with what i'm seeing it shows:
AbyssUnderground.co.uk - Server Status Script V2

--------------------------------------------------------------------------------
This page may take a while to load. Please be patient...
--------------------------------------------------------------------------------
System Information:
--------------------------------------------------------------------------------
Date/Time: 02:49:33 PM, Thursday 01st of December 2005
Uptime: 4 days, 0 hours, 36 mins, 26 secs
CPU Usage:

and thats it!! i've not edited it either..
http://www.jibba-jabba.net/beta/beta10/index.php
_________________
http://www.jibba-jabba.net | http://www.mosthauntedforum.com
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Thu Dec 01, 2005 3:59 pm    Post subject: Reply with quote

You have to give it a chance to load. If the CPU Usage doesnt show anything and it stops there, then turn off CPU Usage and try it again.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Thu Dec 01, 2005 5:53 pm    Post subject: Reply with quote

i put debugging mode on and theres a error with cpu.php

CPU Usage:
Fatal error: Call to undefined method variant::Next() in C:\Program Files\Netserver\www\beta\beta10\cpu.php on line 17
_________________
http://www.jibba-jabba.net | http://www.mosthauntedforum.com
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Dec 02, 2005 2:46 pm    Post subject: Reply with quote

jibbajabba,

Please read http://www.aprelium.com/forum/viewtopic.php?p=41129#41129 .
_________________
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: Fri Dec 02, 2005 2:59 pm    Post subject: Reply with quote

Ah, ok. You have php5 not php4.

In cpu.php, change:

Quote:
while ($cpu = $cpus->Next()) {
//foreach ($cpus as $cpu) {


for

Quote:
//while ($cpu = $cpus->Next()) {
foreach ($cpus as $cpu) {



I will add the option in config.php so editing the file is not needed, in the next version.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Dec 02, 2005 5:56 pm    Post subject: Reply with quote

Ive just fixed the above bug. Please use the link in the top post to download a newer version.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Fri Dec 02, 2005 11:25 pm    Post subject: Reply with quote

ok i downloaded new version and its alot better.. still had to change cpu-speed.php and in drives: c.php i get these errors

Drive C:
Warning: Division by zero in C:\Program Files\Netserver\www\beta\beta10\drives\c.php on line 16

Warning: Division by zero in C:\Program Files\Netserver\www\beta\beta10\drives\c.php on line 17


$DRIVEused2=$DRIVEused / $DRIVEdevision;
$DRIVEfree2=$DRIVEfree / $DRIVEdevision;

now if i remove the 2 /
and put in - like below

$DRIVEused2=$DRIVEused - $DRIVEdevision;
$DRIVEfree2=$DRIVEfree - $DRIVEdevision;

then the 2 warnings go away.. not sure why this script hates my comp so much lol :/
_________________
http://www.jibba-jabba.net | http://www.mosthauntedforum.com
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Dec 02, 2005 11:28 pm    Post subject: Reply with quote

Dont worry, I know about these errors. Thats why phperrors is set to 0 for normal operation. It removes these errors which are caused for some unknown reason that I'm yet to look into.

Just use it with phperrors set to 0 and you will be fine. Its not your computer, its my script causing it ;-)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
jibbajabba
-


Joined: 06 Sep 2005
Posts: 241
Location: England, Doncaster

PostPosted: Fri Dec 02, 2005 11:37 pm    Post subject: Reply with quote

oh ok and stupid me for forgetting i set debug mode on :-/ oh well it is a beta and theres gonna be some problems :) i really shouldnt mess about with scripts when i've only had 3 hours sleep..
_________________
http://www.jibba-jabba.net | http://www.mosthauntedforum.com
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Dec 03, 2005 12:14 am    Post subject: Reply with quote

jibbajabba wrote:
oh ok and stupid me for forgetting i set debug mode on :-/ oh well it is a beta and theres gonna be some problems :) i really shouldnt mess about with scripts when i've only had 3 hours sleep..



Probably not a good idea, no... ;-)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Dec 04, 2005 12:10 am    Post subject: Reply with quote

UPDATE:

Just spent the last 3 hours trying to get the auto service status working. So far I have succeeded in getting PHP, ASP, MySQL and FTP working.

Python and Perl are still to come. Having problems with it.

No release is available yet. Will update post where there is.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Sun Dec 04, 2005 3:34 am    Post subject: Reply with quote

Quote:
AbyssUnderground.co.uk - Server Status Script V2
This page may take a while to load. Please be patient... System Information: Date/Time: 12:31:48 PM, Sunday 04th of December 2005
Uptime: 1 days, 22 hours, 59 mins, 33 secs
CPU Usage: 7% CPU Load. Status: Idle
CPU Type:
CPU Speed:


I'm using php5 and I was able to fix Cpu Usage by swapping the 2 files around but now what?

http://ul2.blazzingsun.com/server/

Be warned, it's slow... =P
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Sun Dec 04, 2005 3:48 am    Post subject: Reply with quote

Woot!

Quote:
<?php include('cpu-type.php'); ?>
<?php include('cpu-speed.php'); ?>


I removed these from the index file and now it works, I'm gonna try to find out the problem my self but dont expect that I'll succeed so any help would still be much appreciated,

Thanks Me (Tom).
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Sun Dec 04, 2005 3:53 am    Post subject: Reply with quote

I hope this helps

Quote:
BlAzZINgSuN.CoM Server Status powered by AbyssUnderground.co.uk - Server Status Script V2
This page may take a while to load. Please be patient... System Information: Date/Time: 12:52:37 PM, Sunday 04th of December 2005
Uptime: 1 days, 23 hours, 20 mins, 22 secs
CPU Usage: 8% CPU Load. Status: Idle
CPU Type:
CPU Speed:
Fatal error: Call to undefined method variant::Next() in C:\Abyss Web Server\htdocs\server\cpu-speed.php on line 17


The baove is cus I truned on the error report thing in the config file


P.S. Sorry for all my posts
Back to top View user's profile Send private message Visit poster's website MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Dec 04, 2005 10:33 am    Post subject: Reply with quote

If you read the README.txt you would see that you only have to edit the config.php to change all of this.

Also you should refrain from making multiple posts. Edit your last post if there was little time between each post.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Sun Dec 04, 2005 10:36 am    Post subject: Reply with quote

I didnt use the config file to change anything although I knew I could and besides I apoligized for multiple posts.
Back to top View user's profile Send private message Visit poster's website MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Dec 04, 2005 10:37 am    Post subject: Reply with quote

chappy426 wrote:
I didnt use the config file to change anything although I knew I could and besides I apoligized for multiple posts.


Thats what the config.php is there for. It makes life easier.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Sun Dec 04, 2005 10:41 am    Post subject: Reply with quote

Oh yeh now I remeber if I disabled one of the things it would also disable the thing that was wrking So I just used the index file I think it was.

As stated above I think its cus I'm using php5 not 4
Back to top View user's profile Send private message Visit poster's website MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Dec 04, 2005 10:43 am    Post subject: Reply with quote

chappy426 wrote:
Oh yeh now I remeber if I disabled one of the things it would also disable the thing that was wrking So I just used the index file I think it was.

As stated above I think its cus I'm using php5 not 4


Each entry is for a different part of the code, thats why I designed it like that. If your pc wont work with that bit of code (come dont work with the cpu-type or windows version) then you simply turn it off. There is nothing I can do about it.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Sun Dec 04, 2005 10:45 am    Post subject: Reply with quote

Intel Celeron 1.7 Ghz

Its a common Processor oh well. =)
Back to top View user's profile Send private message Visit poster's website MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Dec 17, 2005 11:36 pm    Post subject: Reply with quote

NEW UPDATE

DEMO: http://www.abyssunderground.co.uk/system/2/
DOWNLOAD: http://www.abyssunderground.co.uk/system/2/beta/beta11.zip

Added features:

- CPU Usage graph for last 10 seconds (but takes an extra 10 seconds to load)
- Automatic service checker for PHP, ASP, FTP and MySQL added.
- 30% increase in speed by code optimisation


The script is finished for now. I'll add more features as I think of them.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
comwiz3000
-


Joined: 19 Nov 2005
Posts: 51
Location: Wellington, NZ

PostPosted: Sat Jan 07, 2006 10:29 am    Post subject: Reply with quote

My CPU Graph does not load for some reason
http://www.stewartfamily.co.nr/test

Also my port 21 is showing as closed but I have opened it on my router. Do you not if Windows XP SP2 blockes it? If so how do you open it?

Thanks
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sat Jan 07, 2006 10:41 am    Post subject: Reply with quote

comwiz3000 wrote:
My CPU Graph does not load for some reason
http://www.stewartfamily.co.nr/test

Also my port 21 is showing as closed but I have opened it on my router. Do you not if Windows XP SP2 blockes it? If so how do you open it?

Thanks

Did you edit $phpver in cpu-graph.php and config.php?

I believe some ISP's block port 21. Try Port 8080. And Win XP doesn't blcok ports unless you have the windows firewall enabled.

If your ISP blocks port 21 use a differnt port like the one mentioned.

Hope this helps!
_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
comwiz3000
-


Joined: 19 Nov 2005
Posts: 51
Location: Wellington, NZ

PostPosted: Sat Jan 07, 2006 11:03 am    Post subject: Reply with quote

I shouldnt need to as I am using PHP 4. And I have checked both files and they both say "4".
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sat Jan 07, 2006 11:09 am    Post subject: Reply with quote

comwiz3000 wrote:
I shouldnt need to as I am using PHP 4. And I have checked both files and they both say "4".


Ok, I didn't know which version of php you are running.

Ahh stupid me I forgot heres a quote from the readme:
Quote:

"Q: The cpu usage graph doesnt display. Why?
---
A: Make sure phpGD is enabled. Without it the graph wont display."

_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
comwiz3000
-


Joined: 19 Nov 2005
Posts: 51
Location: Wellington, NZ

PostPosted: Sat Jan 07, 2006 11:17 am    Post subject: Reply with quote

Im just a learner, how do you enable gdphp?

Thanks for your help
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sat Jan 07, 2006 11:24 am    Post subject: Reply with quote

comwiz3000 wrote:
Im just a learner, how do you enable gdphp?

Thanks for your help


Ok to to turn it on, just simply uncomment the line "extension=php_gd2.dll" in php.ini located in the C:/windows folder.

Change:

;extension=php_gd2.dll

To:

extension=php_gd2.dll

Hope that works!
_________________
Compu-Geek.org coming back soon


Last edited by Computer-Pro on Sat Jan 07, 2006 12:26 pm; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Jan 07, 2006 12:09 pm    Post subject: Reply with quote

You may have to get the phpgd DLL too.

Port 21 will only show as open if you have an ftp server running.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sat Jan 07, 2006 12:25 pm    Post subject: Reply with quote

The Inquisitor wrote:
You may have to get the phpgd DLL too.

Port 21 will only show as open if you have an ftp server running.


Yep, he did. I gave it ot him while on MSN with him. did every thing right But we still get something like couldn't find php_gd2.dll. I gave it to him and changed the extension_dir to the correct directory.

But we are going to try again tomorrrow since it's past midnight where I live and past midnight where he lives.
_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Jan 07, 2006 1:05 pm    Post subject: Reply with quote

All you do is copy phpgd2.dll into the extensions directory and enable it in the php.ini, and all should work fine.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sat Jan 07, 2006 1:50 pm    Post subject: Reply with quote

The Inquisitor wrote:
All you do is copy phpgd2.dll into the extensions directory and enable it in the php.ini, and all should work fine.


Yeah, that's what I did. :D
_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Jan 07, 2006 5:30 pm    Post subject: Reply with quote

FINAL VERSION V1.2 RELEASED

http://www.abyssunderground.co.uk/system/2/final/final12.zip - FINAL V1.2

Readme file updated
Comments added to config file


Enjoy! :-)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sat Jan 07, 2006 11:34 pm    Post subject: Reply with quote

The Inquisitor wrote:
FINAL VERSION V1.2 RELEASED

http://www.abyssunderground.co.uk/system/2/final/final12.zip - FINAL V1.2

Readme file updated
Comments added to config file


Enjoy! :-)


I like 2.5 beta better. ;-)
_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
world-wide-hosting.us
-


Joined: 30 Sep 2005
Posts: 26
Location: Felton, De.

PostPosted: Tue Jan 10, 2006 2:27 am    Post subject: Reply with quote

The Inquisitor wrote:
This can't be helped unfortunately.


Sure it can. Everyone who uses the scripts buys an x-64 PC. There. Helped. Loaded real quick on mine. Good Job, Andy.
_________________
Working on the Abyss Control Panel. Anyone who would like to help us with PHP XML, Documentation, Graphics, JavaScript, or if you have ideas for the CP, Everyone counts! Go to: http://www.abyssunderground.co.uk/cpforum/ and register.
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Jan 10, 2006 8:43 am    Post subject: Reply with quote

world-wide-hosting.us wrote:
The Inquisitor wrote:
This can't be helped unfortunately.


Sure it can. Everyone who uses the scripts buys an x-64 PC. There. Helped. Loaded real quick on mine. Good Job, Andy.



The "This cant be helped" bit refers to the script not working 100% on some machines. :-)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
comwiz3000
-


Joined: 19 Nov 2005
Posts: 51
Location: Wellington, NZ

PostPosted: Tue Jan 24, 2006 12:16 pm    Post subject: Reply with quote

I have been meaning to say this about a week ago. Comp-pro and I got it going! Yay or was it just Comp-pro.
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions 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