Monitoring server load by domain - suggestions?

cbooth7575

Verified User
Joined
Dec 1, 2004
Messages
7
Does anybody know a good tool, or external service, or whatever to monitor the hits/load/bandwidth all my DirectAdmin domains are doing, in real-time?

My server is starting to reach it's hardware capacity I believe, but I don't know which domains are the ones causing the most load.

Any suggestions would be welcome..thanks!

Cameron
 
Great request, I second this. Can anyone shed any light on this subject, or at least point us in the right direction?
 
To see the site's that are asking a lot of your server, you can add these lines to youre httpd.conf:
PHP:
ExtendedStatus On
<Location /server-status>
SetHandler server-status
</Location>

Then restart apache, and go to

http://xx.xx.xx.xx/server-status

xx.xx.xx.xx is youre server IP

You will see some text, an awful lot of dots, and below the domains that have currently requests running on youre server (you should recordnize the biggest users in a flash.)

Not exactly what you've asked for, but it's realtime and it works fine for me.
 
Hi

Am i right in thinking that this does not work for Apache 2x ?

The reason i asked is this used to work for me but i think my server
got updated and now i get

You don't have permission to access /server-status/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2 Server at ***.***.***.*** Port 80

In the server log i get this

client denied by server configuration: /var/www/html/server-status
 
Last edited:
Have you used custombuild to update your server? It might overrule the code you added to httpd.conf as it's defined in another file as well.

See /etc/httpd/conf/extra/httpd-info.conf. Make sure there is an "Allow from" which includes your IP. It defaults at "Allow from .example.com".
 
hello,

i have the follow type in my httpd.conf and after this restart the httpd but i get always 403 Forbidden

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from Serverip*
</Location>
ExtendedStatus On

*edited

anyone can help me please?
 
Read getUP's reply again; you may be misunderstanding him.

If you're using the server's IP#, then you're wrong; that's where YOUR IP# should go.

Jeff
 
Let me also explain it a bit further; if you use the server IP in the allow from statement, you allow access FROM your server's IP address ONLY. Hence you can view the server-status if you were browsing directly from your server.

If you add your IP address to the allow from statement, you will be the one who can view the server-status page, instead of the server. That is the best way to do it, since you won't be browsing from your server.

You can add as many allow from statements as you like, allowing more computers or networks access when needed.
 
Okay :)

now i have add the following

Code:
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 213.133.99.*
</Location>
ExtendedStatus On

213.133.99.* is a socks proxy ... i have enter in the adress-field http://serverip/server-status and enter ...

Code:
Forbidden

You don't have permission to access /server-status on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2 Server at 74.50.114.* Port 80

what is the problem? ... yes i have the details enter in httpd.conf and restart the httpd after this
 
and in the error-log i found the following

Code:
[error] [client 213.133.99.*] client denied by server configuration: /var/www/html/server-status
[error] [client 213.133.99.*] File does not exist: /var/www/html/403.shtml
 
Hi again

managed to get mine to work im on apache 2.x and i had to add my ip to get it to work
What i would like to see though is the extended status as the basic is pants, downside
is i am not understanding as to what i need to add in the conf to get the extended to work

Description: Keep track of extended status information for each request
Syntax: ExtendedStatus On|Off
Default: ExtendedStatus Off
Context: server config
Status: Base
Module: mod_status
Compatibility: ExtendedStatus is only available in Apache 1.3.2 and later.

Found in here

http://httpd.apache.org/docs/2.0/mod/mod_status.html#extendedstatus

This is for Apache 2.0 (my version)

Can someone please advise as to what i need to put to get the extended to work please?
 
Ok got it sorted now, I added to the wrong place, thanks for ya help :)
 
Last edited:
Hi

Whats the best way to add multiple ip addys in the allow here please?

Code:
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 213.133.99.*
</Location>
ExtendedStatus On
 
Back
Top