On Thursday, November 17, 2005 8:20 AM, suppressed 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/
_______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.