Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

monit network request in ubuntu

while true
do
echo -----`date '+%r'` -----:
netstat -ant | grep :3011 | awk '{print $6}' | sort | uniq -c | sort -n
echo httpd processes: [`ps aux | grep httpd | wc -l`]
echo .
sleep 2
done
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #monit #network #request #ubuntu
ADD COMMENT
Topic
Name
2+8 =