摘要: 1. 获取apache statusmonitor_log.sh#!/bin/bash#连接数site_connects=$(netstat -ant | grep $ip:80 | wc -l)#当前连接数site_cur_connects=$(netstat -ant | grep $ip:80 | grep EST | wc -l)#apacheapache_speed=$(netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}')printf "[#start#]\n$(date 阅读全文
posted @ 2013-07-07 01:08 傲雪星枫 阅读(261) 评论(0) 推荐(0)