Introduction
When the eximstats
database becomes corrupt, it must be rebuilt. This article provides the procedure to rebuild the eximstats
database.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Stop the
tailwatchd
service./scripts/restartsrv_tailwatchd --stop
- Stop
eximstats
service./scripts/restartsrv_eximstats --stop
- Move the
eximstats
databases out of the way.find /var/cpanel -name 'eximstats_db*' -exec mv -v {}{,.$(date +%s)} \;
- Recreate the database
/usr/local/cpanel/bin/updateeximstats
- Import the Exim data.
/scripts/import_exim_data /var/log/exim_mainlog
- Regenerate the database.
/scripts/slurp_exim_mainlog --force
- Restart the
eximstats
service./scripts/restartsrv_eximstats
- Restart the
tailwatchd
service./scripts/restartsrv_tailwatchd --start