Initial commit

This commit is contained in:
Isaac Parenteau committed 2018-07-07 20:43:51 -05:00
commit 880e39de2e
511 files changed
+38363

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
wait_count=0;
est_count=0;
while [ 1 ]
do
new=`netstat -an |grep 3306 |grep TIME_WAIT |wc -l`
new2=`netstat -an |grep 3306 |grep ESTABLISHED |wc -l`
if [ $wait_count != $new ]; then
echo Number of connections waiting = $new
wait_count=$new
fi
if [ $est_count != $new2 ]; then
echo Number of connections established = $new2
est_count=$new2
fi
sleep 1
done