First Server Check

 (info1=/home/$(hostname)-$(date +"%F-%T".txt); touch $info1;echo -e "\nHostname: $(hostname)\n\n$(cat /etc/centos-release)\n\nCores: $(nproc)\n\n$(w)\n\n$(free -m)\n\n$(df -h| grep -v tmpfs)\n\nApache info:\n$(httpd -V|head -9|grep -E '(version|built|MPM)')\n\nEA4: $(if [ -f /etc/cpanel/ea4/is_ea4 ]; then echo 'Yes'; else echo 'No'; fi)\n\nPHP info: \n$(/usr/local/cpanel/bin/rebuild_phpconf --current)$(if [ ! -z `find /opt/cpanel/ea-php*/root/etc/php.d/ -name ssp.ini` ]; then echo -e '\n\nSS+ PHP INIs:\n$(find /opt/cpanel/ea-php*/root/etc/php.d/ -name ssp.ini';fi)\n\nMySQL info:">> $info1; echo -e "$(echo -e "\nMysql Mem configured settings: " && awk '/(key|i.*b)_b.*r_(pool_)?(s.*|.*es)/{sub("="," "); print $1,$2}' /etc/my.cnf && echo -e "\nMysql Mem current settings: " && mysql -e "show variables" |awk '/(key|innodb)_buffer_(pool_)?(size|.*es)/{if($1~/.*es/)print$1,$2; else print$1,$2/1048576"M"}' && echo -e "\nMysql Mem suggested settings :" && mysql -Bse 'show variables like "datadir";'|awk '{print $2}'|xargs -I{} find {} -type f -printf "%s %f\n"|awk -F'[ ,.]' '{print $1, $NF}'|awk '{array[$2]+=$1} END {for (i in array) {printf("%-15s %s\n", sprintf("%.3f MB", array[i]/1048576), i)}}' | awk '{if($3~/MYI/)print"key_buffer_size\t\t> ",$1"M"};{if($3~/ibd/)a+=$1}END{print "innodb_buffer_pool_size\t> ",a"M"}')" >> $info1; if [ ! -z `find  /usr/local/apache/conf/includes/ -name 'pre*' -name '*.conf' ! -name 'error*' -size +0` ]; then echo -e "\nVirtualhost files:\n$(find  /usr/local/apache/conf/includes/ -name 'pre*' -name '*.conf' ! -name 'error*' -size +0)" >> $info1; fi;  sed "s/\/usr/\\n\/usr/g" $info1)

Output example:

Hostname: host.exampledomain.com

Cores: 2

 13:06:21 up 88 days,  8:38,  2 users,  load average: 0.02, 0.05, 0.05
USER     TTY      FROM             [email protected]   IDLE   JCPU   PCPU WHAT
lwadmin- pts/0    10.20.4.40       10:17    5.00s  2.72s  0.00s sshd: lwadmin-S7AEQ5 [priv]
lwadmin- pts/1    10.20.4.73       11:49    1:07m  0.20s  0.00s sshd: lwadmin-S7AEQ5 [priv]

              total        used        free      shared  buff/cache   available
Mem:            956         331          89          80         535         389
Swap:          1999         118        1881

Filesystem      Size  Used Avail Use% Mounted on
/dev/vda3        48G   11G   35G  23% /
devtmpfs        470M     0  470M   0% /dev
tmpfs           479M     0  479M   0% /dev/shm
tmpfs           479M   55M  424M  12% /run
tmpfs           479M     0  479M   0% /sys/fs/cgroup
/dev/loop0      1.9G  3.5M  1.8G   1% /tmp
tmpfs            96M     0   96M   0% /run/user/0

Apache info:
Server version: Apache/2.4.33 (cPanel)
Server built:   Apr  5 2018 20:13:16
Server's Module Magic Number: 20120211:76
Server loaded:  APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.3, APR-UTIL 1.6.1
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)

EA4: Yes

PHP info:
DEFAULT PHP: ea-php70
ea-php55 SAPI: cgi
ea-php56 SAPI: cgi
ea-php70 SAPI: cgi

MySQL info:
DEFAULT MYSQL ENGINE = InnoDB
engine  tables  rows    data    idx total_size  
MyISAM  93  0.01M   0.00G   0.00G   0.00G   
InnoDB  54  0.00M   0.00G   0.00G   0.00G   

Mysql Mem configured settings: 
innodb_buffer_pool_size 64M
key_buffer_size 64M

Mysql Mem current settings: 
innodb_buffer_pool_instances 8
innodb_buffer_pool_size 64M
key_buffer_size 64M

Mysql Mem suggested settings :
key_buffer_size     >  0.715M
innodb_buffer_pool_size >  84.578M

Virtualhost files: 

/usr/local/apache/conf/includes/pre_main_global.conf 
/usr/local/apache/conf/includes/pre_virtualhost_global.conf