Shell
Shell Script List All Top IP Address Accessing Apache Server
#!/bin/bash # where to store final report? DEST=/var/www/reports/ips # domain name DOM=$1 # log file location LOGFILE=/var/logs/httpd/$DOM/access.log # die if no domain name given [ $# -eq 0 ] && exit 1 # make dir [ ! -d $DEST ] && mkdir -p $DEST # ok, go though log file and create report if [ [...]
NAS Backup Server Disk Monitoring Shell Script
A shell script to monitor server disk space and send an email alert to admin. This is useful if you are using rented dedicated / vps server and backup data to NAS everyday. This script will monitor disk space and it will send you an email. Make sure you setup your email id, NAS space [...]