if [ -f /etc/cpanel/ea4/is_ea4 ]; then
LOGPATHS="/var/lib/mysql/ /var/log/ /var/log/apache2/ /var/log/apache2/domlogs/"
LOGPATHS="/var/lib/mysql/ /var/log/ /usr/local/apache/logs/ /usr/local/apache/domlogs/"
TEMPLOG=/var/log/logfilesizecheck.${RANDOM}
for LOGPATH in $LOGPATHS; do
find $LOGPATH -maxdepth 1 -type f | xargs ls -al |sed '/ibdata/d'| awk -v alog="$TEMPLOG" '{ if($5 > 1825361100) print > alog;}'
subject="large_log_files_detected"
mail -s $subject sadmin-ra2@imhadmin.net< $TEMPLOG