I have a FreeBSD bridge / transparent firewall running ipfw in a webhosting environment with 100+ servers.
Can someone explain me how i can count the number of concurrent connections?
Quick solution - you can setup ipfw rule like this
Code:
ipfw add xxxx count ip from any to any 80 setup
Now each 60 second take command
Code:
ipfw show xxxx | awk '{print $2;}'
And pass it to rrdtool in counter mode. Or pass these info to cacti.. Then you can get a graph width avg connection requests per minute.
If you want count concurrent connections you must hack/dig your webserver (apache/nginx/etc) for current keepalives/status information, ipfw will not help
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.