How to calculate bandwidth usage from MRTG value?

The Multi Router Traffic Grapher (MRTG) is a free software to monitor and measure the traffic load on network links.This provide us the graphical representation of network traffic. MRTG gives only an average value of transfer. From this value we can calculate the exact monthly bandwidth using the following equation:

Total months bandwidth = ( Monthly Average incoming + Monthly average outgoing data ) /8 x 60 sec x 60 min x 24 hrs x 30.5 days

How to reset default SSH port for cPanel servers?

If you corrupt the SSH settings on your server and lock yourself out of ssh, then you can reset the SSH configuration settings from WHM by following the steps below:

1. Login to your WHM on a non secure port that is : 2086
For example : http://serverip:2086
2. Then browse the URL to reset the SSH configuration settings : http://serverip:2086/scripts2/doautofixer?autofix=safesshrestart

After running the script, the default port 22 will open up and after logging in the server via ssh we can edit the config file of sshd and then restart sshd service to apply the changes made.