View Full Version : Monitoring server load by domain - suggestions?
cbooth7575
04-04-2006, 07:34 AM
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
ldjnetworks
04-15-2006, 05:38 PM
Great request, I second this. Can anyone shed any light on this subject, or at least point us in the right direction?
planepix
04-26-2006, 05:00 AM
To see the site's that are asking a lot of your server, you can add these lines to youre httpd.conf:
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.
bashy
08-10-2008, 02:34 AM
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
getUP
08-12-2008, 10:15 AM
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".
msgme
08-17-2008, 04:48 AM
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?
getUP
08-17-2008, 07:13 AM
You should use your own IP address instead of the server IP.
msgme
08-17-2008, 01:34 PM
no ... ^^ i used the server-ip
thanks
nobaloney
08-18-2008, 09:58 AM
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
getUP
08-18-2008, 11:45 AM
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.
msgme
08-23-2008, 11:00 AM
Okay :)
now i have add the following
<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 ...
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
msgme
08-24-2008, 04:09 AM
and in the error-log i found the following
[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
bashy
08-25-2008, 01:26 PM
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?
chatwizrd
08-25-2008, 01:28 PM
ExtendedStatus On
bashy
08-25-2008, 01:29 PM
I thought that but my httpd wouldnt restart :(
bashy
08-25-2008, 02:09 PM
Ok got it sorted now, I added to the wrong place, thanks for ya help :)
bashy
02-22-2009, 03:21 AM
Hi
Whats the best way to add multiple ip addys in the allow here please?
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 213.133.99.*
</Location>
ExtendedStatus On
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.