it seems doesn't works for Apache 2
Yeah, this doesn't work with Apache 2. If you're looking for something similar, I suggest checking out mod_cband.
Cheers, Phil
it seems doesn't works for Apache 2
so the commented out portion in the monitor.php, would be where you put the ignored domain (s)?.There is also an 'ignore' portion in the monitor.php worth using maybe. It appears to be useful for opting-out your own main site.
/*if ( $domain != 'l0rdphi1.com' )
{
continue;
}*/
Yes, you could do that there. To have it ignore a specific domain, you'd want to add:so the commented out portion in the monitor.php, would be where you put the ignored domain (s)?.
and for multiple domains would you ad them between the single quotes?
Code:/*if ( $domain != 'l0rdphi1.com' ) { continue; }*/
if ( $domain == 'dom2skip.tld' ) continue;
$IgnoredDomains = array('one.com', 'two.com', 'three.com');
if (in_array($domain, $IgnoredDomains)) continue;
1st, does this script actually work?
2nd, going through directadmin.php, I dont see how to change the php mail() functions
I have a particular server that seems to go into high load average (30+) on Sunday of each week, by the time I get there its almost impossible to sort where the troubles are, so I'm hoping that this will help sort the problems. I to want to be notified as to which domain is causing the troubles, any updates on a package that is more configurable?
Regarding where email notices are sent, you can change that on line 118 of directadmin.php; change $result['email'] to the actual email address you wish to receive notices at.
Results
Details
plugin.tar.gz extracted
No install.sh script was found. Script not executed.
Error with install script
Interested in exactly the same....I want to know which host/virutal host is using the most CPU usuage and set a limit. I have one domain which is eating all my CPU
This tool is designed to monitor domains via the server-status Apache 1.xx feature. The tool can monitor both domain load and the number of processes per domain.
NOTE: This tool does not work with Apache 2. You may wish to check out mod_throttle (Apache 1) or mod_cband (Apache 2) as replacements for this tool.
Once a domain reaches certain specified limits, you can opt to warn and suspend users.
Prior to running this script, please run 'table.sql' AND modify each file in the 'conf' directory to your preference. See the included INSTALL file for details.
Download v1.0 here.
Last updated 2003-1-9 at 9:28 PM EST
Have fun, Phi1.