I need to count number of connections to php's cgi unix socket (created with spawn-fci). Number of php-cgi processes is limited and i want to be able to monitor amount of free processes. I tried all available tools (netstat, sockstat even lsof) but it seems there is no way to determine how many active connections from nginx to unix socket. Please advise.
Edited 2 time(s). Last edit at 02/07/2011 04:03PM by cmyker.