Eximstats’ı kapatmak

Via WHM:

To disable Eximstats in WHM, login and find the service manager:

WHM-service-manager

WHM Service Manager Location

Once in the service manager you should be presented with a list of services that you can disable.  Simply find Eximstats and uncheck the checkbox:

WHM-eximstats-toggle

WHM Eximstats Toggle

Press save at the bottom of the list and you have successfully disabled Eximstats!

 

Via Command-Line:

Pretty much anything you can do in WHM, you can do from command line.  To disable Eximstats from command line, first check that it is running:

1
/usr/local/cpanel/bin/tailwatchd –status

This will give you an output of the running services under tailwatchd:

1
2
3
4
5
6
7
tailwatchd is enabled
Running, PID 343
  Driver (Active: 1) Cpanel::TailWatch::cPBandwd
  Driver (Active: 1) Cpanel::TailWatch::Antirelayd
  Driver (Active: 1) Cpanel::TailWatch::Eximstats
  Driver (Active: 1) Cpanel::TailWatch::ChkServd
  Driver (Active: 0) Cpanel::TailWatch::JailManager

You can disable any of the services listed here through the following command, this example shows Eximstats:

1
/usr/local/cpanel/bin/tailwatchd –disable=Cpanel::TailWatch::Eximstats

 

Clearing Out Eximstats Database:

So you have disabled Eximstats, but what about that large database that is left behind, you know, the one you no longer need?  Well we should probably clear it, not remove it.  Removing it would prevent us from re-enabling it if we ever needed Eximstats in the future.  Lets just clear it out.

First, lets check how big the database actually is.  Drop the following command in to your terminal.

1
du -sch /var/lib/mysql/eximstats/

This should give you the output of the total size of the database:

1
2
51M    /var/lib/mysql/eximstats/
51M    total

Now, lets get into a mysql prompt by executing mysql, then lets tell mysql that we want to use the eximstats database.

1
use eximstats

Now we proceed with the clearing of each table.  Execute these commands from mysql prompt:

1
2
3
4
delete from sends;
delete from smtp;
delete from failures;
delete from defers;

Thats it! Now when you run the command to get the size of eximstats, you should see a much smaller footprint:

1
2
72K    /var/lib/mysql/eximstats/
72K    total

You may also like...

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir