"Apache Status" equivalent for LiteSpeed (WHM)

#1
Is there an equivalent of the "Apache Status" page in WHM that shows all current user connections, IP addresses, vhosts and requests?

If not, how could we create one? It would be especially useful for tracking down bots flooding particular sites.
 

NiteWave

Administrator
#2
lsws web admin -> Actions -> Real-Time Stats

it's quite useful to check health status of the whole web server, including DDos attack.
 
#3
We recently installed Litespeed on a few (Linux) servers and wondered exactly the same thing (we've got some shell scripts that rely on apachectl fullstats output, which obviously stopped doing what they should when we switched from Apache to Litespeed).

This command is what we've used to make the scripts function with litespeed in effect, to gain a similar output that apachectl fullstatus used to previously:
curl -i -k --output - -u ls-web-admin-console-username-here:ls-web-admin-console-password-here https://localhost:7080/status?rpt=detail

If you want JUST the IP addresses from the output the above generates:
curl -i -k --output - -u ls-web-admin-console-username-here:ls-web-admin-console-password-here https://localhost:7080/status?rpt=detail | awk '{print $1}' | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'

If you want to list the IP addresses making concurrent requests, count the requests and order IPs based on the number of concurrent requests, this can be used:
curl -i -k --output - -u ls-web-admin-console-username-here:ls-web-admin-console-password-here https://localhost:7080/status?rpt=detail | awk '{print $1}' | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | awk '{a[$0]++}END{for(i in a){if(a-1)print i,a}}' | sort -r -n -k2
 
#4
Actually, I've got a question about this.

In the Litespeed web console, if you look at real time stats it displays the top 5 Vhosts by default, and there's a drop down to select top 10, top 20, top 50 or all.

If you run this at the command line:
curl -i -k --output - -u ls-web-admin-console-username-here:ls-web-admin-console-password-here https://localhost:7080/status?rpt=detail

And compare it to "ALL" in the vhosts in realtime stats (in the Litespeed web console) it looks like you get less output in the command line.

Is it the case that the command line isn't showing the same as what's seen in "ALL" in the vhosts in realtime stats (in the Litespeed web console)?

If it is, can the command line option be run so that it does show the equivalent of what's seen in "ALL" in the vhosts in realtime stats (in the Litespeed web console)?

(I'd really like to be able to see the "ALL" in the command line, hence the question).
 
Top