Results 11 to 20 of 31
-
12th Dec 2010, 06:45 PM #11MemberWebsite's:
uploadz.org serverpick.inReading Now..
-
12th Dec 2010, 06:50 PM #12OPMemberWebsite's:
Elite.SO Defendos.com Motionite.com@Sandino,
Assume that the addon websites are popular.
Read with care next time
-
12th Dec 2010, 06:52 PM #13Member
I truely agree with sandino aswell.
You can have many sites that can have traffic but are not high on resources and all. so a server can have more than 10,000 sites on one server and can handle the load just perfectly.
All you need to see for overselling is if the load of the server goes high all the time, but also this can be due to wrong configuration of the server and all.
Thanks & Regards
-
12th Dec 2010, 06:56 PM #14OPMemberWebsite's:
Elite.SO Defendos.com Motionite.com
-
12th Dec 2010, 07:01 PM #15Respected DeveloperWebsite's:
wrzc.orgPHP Code:<?php
//GET SERVER LOADS
$loadresult = @exec('uptime');
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$loadresult,$avgs);
//GET SERVER UPTIME
$uptime = explode(' up ', $loadresult);
$uptime = explode(',', $uptime[1]);
$uptime = $uptime[0].', '.$uptime[1];
$data .= "Server Load Averages $avgs[1], $avgs[2], $avgs[3] <br />";
$data .= "Server Uptime $uptime";
echo $data;
?>Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
12th Dec 2010, 07:02 PM #16Member
You know l0cal, there are ways you can actually see who's using how much resources, allowing you to... suspend them *GASP*
-
12th Dec 2010, 07:06 PM #17OPMemberWebsite's:
Elite.SO Defendos.com Motionite.com@.mac, Im posted this in the "client" view, and not the server admin view.
@Mr.Happy, your code isn't working, I get:
Server Load Averages , ,
Server Uptime ,
I have exec disabled on the server.
-
12th Dec 2010, 07:11 PM #18Member
Again, allowing unlimited addon domains has NOTHING to do with overselling. If a client has a few domains that are heavy on the CPU, it's very easy to detect and suspend it. Not all hosts are morons.
Regarding the script; it's kind of logical that if you have the functions required disabled it won't work, right?
-
12th Dec 2010, 07:16 PM #19OPMemberWebsite's:
Elite.SO Defendos.com Motionite.com@.mac, not every host is so fucking smart as you.
And I'm also not as smart as you, I really don't know why that script isn't working lol.
PHP Code:
<?php
error_reporting(0);
if (ini_get('disable_functions')) {
$disabled_funcs=array_map('trim',explode(',',ini_get('disable_functions')));
}
$action=$_GET["action"];
if ($action=="phpinfo") {
/*
Uncoment the line below to allow users to view PHP Info for your
server. This potentially allows access to information a malicious
user could use to find weaknesses in your server.
*/
#phpinfo();
} else {
$users[0]="Unavailable";
$users[1]="--";
$loadnow="Unavailable";
$load15="--";
$load30="--";
if (in_array('exec',$disabled_funcs)) {
$load=file_get_contents("/proc/loadavg");
$load=explode(' ',$load);
$loadnow=$load[0];
$load15=$load[1];
$load30=$load[2];
} else {
$reguptime=trim(exec("uptime"));
if ($reguptime) {
if (preg_match("/, *(\d) (users?), .*: (.*), (.*), (.*)/",$reguptime,$uptime)) {
$users[0]=$uptime[1];
$users[1]=$uptime[2];
$loadnow=$uptime[3];
$load15=$uptime[4];
$load30=$uptime[5];
}
}
}
if (in_array('shell_exec',$disabled_funcs)) {
$uptime_text=file_get_contents("/proc/uptime");
$uptime=substr($uptime_text,0,strpos($uptime_text," "));
} else {
$uptime=shell_exec("cut -d. -f1 /proc/uptime");
}
$days=floor($uptime/60/60/24);
$hours=str_pad($uptime/60/60%24,2,"0",STR_PAD_LEFT);
$mins=str_pad($uptime/60%60,2,"0",STR_PAD_LEFT);
$secs=str_pad($uptime%60,2,"0",STR_PAD_LEFT);
$phpver=phpversion();
$mysqlver=mysql_get_client_info();
$zendver=zend_version();
echo "<load>$loadnow</load>\n";
echo "<uptime>$days Days $hours:$mins:$secs</uptime>\n";
echo "<phpver>$phpver</phpver>\n";
echo "<mysqlver>$mysqlver</mysqlver>\n";
echo "<zendver>$zendver</zendver>\n";
}
?>
-
12th Dec 2010, 07:18 PM #20Member
Not trying to be smart, but assuming a host is overselling based on addon domains...
Happy's script won't work if you have exec disabled, and load/uptime in WHMCS's script won't work if you have explode and file_get_contents disabled...
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Detect and Block Phishing Attempts
By Daniel in forum Webmaster ResourcesReplies: 7Last Post: 3rd Nov 2011, 08:31 AM -
[JQ]How to detect location inside iframe (remote page)
By Porsche_maniak in forum Web Development AreaReplies: 0Last Post: 11th May 2011, 07:40 PM -
[help] Detect session on URL
By jomasaco in forum Web Development AreaReplies: 4Last Post: 28th Apr 2011, 05:20 PM -
How to detect keylogger and destroy it ?
By shufol in forum Technical Help Desk SupportReplies: 7Last Post: 27th Jan 2011, 05:49 PM -
[HELP] Detect Referrer and select theme
By WaReZ in forum Technical Help Desk SupportReplies: 2Last Post: 20th Nov 2010, 12:22 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...