Web Hosting Talk







View Full Version : Need some help displaying server load and whether certain services are running in PHP


OneStopHost
06-08-2003, 05:24 PM
Hi
I need to be able to display things like server load and whether certain services are running (HTTP, FTP, DNS, etc.) with PHP
I know the basics in PHP and can generally get by but this is way over my head.
Thanks in advance
~Max

sitekeeper
06-08-2003, 05:44 PM
There are many...

I use Server Info v1.08 from http://www.widexl.com/download.html and Server Check Version 2.00 from
http://www.monster-submit.com/servercheck

edit url

OneStopHost
06-08-2003, 05:45 PM
Thanks sitekeeper. I will check them and post back in a bit with my results :)

OneStopHost
06-08-2003, 05:50 PM
Thanks, but neither seem to contain the info I'm looking for :)

sitekeeper
06-08-2003, 05:56 PM
env.pl displays this....

Server info
Operating system = linux
Kernel = 2.4.18-27.7.x
Machine = i686
Processor type = unknown
Whoami = genesis
Host name = xenon.xxxxxxx.net
Server name = www.xxxxx***********
Server IP = 207.44.204.62

Web server info
HTTP address = www.xxx***********
Document root = /home2/xxxxxxxxxx/public_html
Apache lib = /usr/lib/apache
Administrator = webmaster@xxxxxx***********
Server software = Apache/1.3.27 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.0 mod_gzip/1.3.26.1a PHP/4.3.1 FrontPage/5.0.2.2510 mod_ssl/2.8.14 OpenSSL/0.9.6b
HTTP accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, application/vnd.ms-excel, application/x-shockwave-flash, */*

Server programs
Mail program = /usr/sbin/sendmail
Tar program = /bin/tar
Gzip program = /usr/bin/gzip
Compress program = /usr/bin/compress
Whois program = /usr/bin/whois
ImageMagick convert = undefined

Perl info
Perl location = /usr/local/bin/perl
Perl version = 5.006001
Locations of Perl libraries = /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .

Extra info
Executing of system commands = Enabled
Server uptime = 5:52pm up 7:05, 0 users, load average: .09, 0.8, .03

Remote user info
Remote IP = xxx.150.xx.xxx
Remote hostname = undefined
Language = en-us
User agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Server version
Linux version 2.4.18-27.7.x (bhcompile@stripples.devel.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-112)) #1 Fri Mar 14 06:44:53 EST 2003

CPU info
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.00GHz
stepping : 4
cpu MHz : 1992.571
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 3961.24


Memory info
total: used: free: shared: buffers: cached:
Mem: 1585414144 1315233792 270180352 0 92938240 922296320
Swap: 1069277184 27709440 1041567744
MemTotal: 1548256 kB
MemFree: 263848 kB
MemShared: 0 kB
Buffers: 90760 kB
Cached: 889460 kB
SwapCached: 11220 kB
Active: 720380 kB
Inact_dirty: 374492 kB
Inact_clean: 87428 kB
Inact_target: 236460 kB
HighTotal: 655296 kB
HighFree: 22584 kB
LowTotal: 892960 kB
LowFree: 241264 kB
SwapTotal: 1044216 kB
SwapFree: 1017156 kB
Committed_AS: 1105708 kB

Perl libraries installed
Library CGI v2.752 installed
The library mod_perl is not installed
Library www-perl v5.69 installed
Library DBI v1.37 installed
Library DBD::mysql v2.1027 installed
Library URI v1.23 installed
The library Apache is not installed
Library Digest::MD5 v2.24 installed
Library Crypt::SSLeay v0.49 installed

Apache modules installed
Module 'mod_rewrite.so' installed
Module 'mod_cgi.so' installed
Module 'mod_env.so' installed
Module 'mod_imap.so' installed
Module 'mod_include.so' installed
Module 'libperl.so' is not installed
Module 'mod_alias.so' installed
Module 'mod_access.so' installed
Module 'mod_browser.so' is not installed
Module 'mod_python.so' is not installed
Module 'mod_unique_id.so' installed

Module 'mod_auth.so' installed
Module 'mod_digest.so' installed
Module 'mod_auth_anon.so' installed
Module 'mod_auth_db.so' installed
Module 'mod_auth_dbm.so' installed
Module 'mod_auth_cookie.so' is not installed
Module 'mod_auth_digest.so' is not installed
Module 'mod_auth_mysql.so' is not installed

Module 'mod_expires.so' installed
Module 'mod_fastcgi.so' is not installed
Module 'mod_gzip.so' is not installed
Module 'mod_headers.so' installed
Module 'libphp3.so' is not installed
Module 'libphp4.so' installed
Module 'mod_proxy.so' is not installed
Module 'mod_speling.so' installed
Module 'mod_status.so' installed
Module 'mod_usertrack.so' installed
Module 'mod_vhost_alias.so' installed

Special info
user = root
group = root
host = localhost
network = undefined
protocol = ip
service = tcpmux

Web server Env
DOCUMENT_ROOT = /home/xxxxxx/public_html
GATEWAY_INTERFACE = CGI/1.1
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, application/vnd.ms-excel, application/x-shockwave-flash, */*
HTTP_ACCEPT_ENCODING = gzip, deflate
HTTP_ACCEPT_LANGUAGE = en-us
HTTP_CONNECTION = Keep-Alive
HTTP_HOST = www.xxxxxxxx***********
HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
PATH = /usr/local/bin:/usr/bin:/bin
QUERY_STRING =
REDIRECT_STATUS = 200
REDIRECT_URL = /cgi-bin/env.pl
REMOTE_ADDR = 172.150.52.231
REMOTE_PORT = 1116
REQUEST_METHOD = GET
REQUEST_URI = /cgi-bin/env.pl
SCRIPT_FILENAME = /home2/xxxxxxx/public_html/cgi-bin/env.pl
SCRIPT_NAME = /cgi-bin/env.pl
SERVER_ADDR = 207.44.204.62
SERVER_ADMIN = webmaster@xxxxxx***********
SERVER_NAME = www.xxxxx***********
SERVER_PORT = 80
SERVER_PROTOCOL = HTTP/1.1
SERVER_SOFTWARE = Apache/1.3.27 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.0 mod_gzip/1.3.26.1a PHP/4.3.1 FrontPage/5.0.2.2510 mod_ssl/2.8.14 OpenSSL/0.9.6b

sitekeeper
06-08-2003, 05:59 PM
If you are looking for a script to put on you website for people to see if services are ok, check hotscripts.com I know there is some there...

kostagr33k
06-10-2003, 09:25 PM
Hey, how are you? Are you still looking for a script to show that information?

If you are, email me at kostagr33k@yahoo.com and I can try to help =D

Kosta