[ic] mod_interchange and Apache MaxClients
John1
list_subscriber at yahoo.co.uk
Thu Nov 17 19:44:53 EST 2005
On Thursday, November 17, 2005 8:20 AM, rphipps at reliant-solutions.com wrote:
> Create a file called iccheckcommands.sh with the following contents
> and update $REPORT_COMMAND with the path to this file, make sure it's
> executable:
>
For what it's worth, here is my iccheckcommands.sh script:
#!/bin/bash
echo ""
echo ""
date
echo ""
echo -e `netstat -nt | grep :80 | wc -l` "\t connections to Apache port 80"
echo -e `netstat -nt | grep :443 | wc -l` "\t connections to Apache port
443"
echo -e `ps -elf | grep -c httpd` "\t Apache processes"
echo -e `ps -elf | grep -c interchange` "\t IC processes"
echo -e `ps -elf | grep -c mysqld` "\t MySQL processes"
echo""
echo "Number of TCP and UDP connections for each IP, grouped by state"
netstat -ntu | sed '1,2d' | awk '{print $5,$6}' | sed -e 's/:[0-9]*//g' |
sort | uniq -c | sort -n
echo ""
echo "Number of active Unix domain sockets, grouped by state and path"
netstat -x | sed '1,2d' | awk '{print $5,$8}' | sed -e 's/:[0-9]*//g' | sort
| uniq -c | sort -n
___________________________________________________________
Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/
More information about the interchange-users
mailing list