A simple script to monitor apache connections
1 2 3 4 5 6 7 8 9 10 |
#!/bin/bash while : do echo "Press [CTRL+C] to stop.." d=`date` status=`apachectl status | grep Status` echo "$d $status" >> apache_status.txt sleep 1 done |
To run this:
1 |
# nohup ./apache.sh & |
Leave a Reply