reportpath1="report.txt" rm -r $reportpath1 echo !! usage " ./c www.domain.com " !!! sleep 3 echo Uptime `uptime` >> $reportpath1 echo Check /proc/user_beancounters >> $reportpath1 cat /proc/user_beancounters | grep -v " 0" >> $reportpath1 echo /etc/ips is `cat /etc/ips | wc -l` number +1 of IPs >> $reportpath1 echo exim que is `exim -bpc` >> $reportpath1 echo Number of Current httpd connections is `netstat -nape | grep ":80" | awk '{print $5}' | sort | wc -l` >> $reportpath1 echo Number of Current mysql connections is `netstat -nape | grep mysql.sock |wc -l` >> $reportpath1 echo Number of sites httpd.conf >> $reportpath1 cat /usr/local/apache/conf/httpd.conf | grep ServerAlias | wc -l >> $reportpath1 echo cheking $1 echo Check HTTP port 80 echo Check HTTP port 80 >> $reportpath1 lynx -dump "http://www.siteuptime.com/users/quickcheck.php?PHPSESSID=1&HostName=$1&ServiceId=1&Locations%5B1%5D=on&Locations%5B4%5D=on&Locations%5B5%5D=on&Action=Check" | grep United >> $reportpath1 echo Check SMTP port 25 echo Check SMTP port 25 >> $reportpath1 lynx -dump "http://www.siteuptime.com/users/quickcheck.php?PHPSESSID=1&HostName=$1&ServiceId=4&Locations%5B1%5D=on&Locations%5B4%5D=on&Locations%5B5%5D=on&Action=Check" | grep United >> $reportpath1 echo Check FTP port 21 echo Check FTP port 21 >> $reportpath1 lynx -dump "http://www.siteuptime.com/users/quickcheck.php?PHPSESSID=1&HostName=$1&ServiceId=5&Locations%5B1%5D=on&Locations%5B4%5D=on&Locations%5B5%5D=on&Action=Check" | grep United >> $reportpath1 echo Check POP port 110 echo Check POP port 110 >> $reportpath1 lynx -dump "http://www.siteuptime.com/users/quickcheck.php?PHPSESSID=1&HostName=$1&ServiceId=6&Locations%5B1%5D=on&Locations%5B4%5D=on&Locations%5B5%5D=on&Action=Check" | grep United >> $reportpath1 lynx -dump "http://www.dnsstuff.com/tools/whois.ch?ip=$1">> $reportpath1 lynx -dump localhost/whm-server-status >> $reportpath1 lynx -dump http://www.dnsreport.com/tools/dnsreport.ch?domain=`sed 's/.*=//g;' /etc/nameserverips | grep 1` >> $reportpath1 lynx -dump localhost/whm-server-status | awk '{print $11}' | sed '/^[[:space:]]*$/d'|sort >> $reportpath1 vi $reportpath1