发布时间:2014-07-15 17:48:10
本shell脚本用于监控Nginx的连接数,Nginx所占用内存的总数,以及进程数。#/bin/bashhost=`hostname`ip=`ifconfig eth0 | grep ‘inet addr’|sed ‘s/.*addr://g’|sed ‘s/B.*//g’`#监控nginx的连接数http_req=`netstat -nat|grep -i “80″|wc -l `time_stamp=`date “+%Y/%m/%d %T”`if [ ${h.........【阅读全文】