お客様の1人が、WHMから tailwatchdサービスのメールを受け取りました。 ダウンしています。修正するには、次の手順を実行しました。
エラーメッセージ
ATTENTION ATTENTION ATTENTION ATTENTION
Cpanel::TailWatch::Eximstats appears to have unprocessed SQL in /var/cpanel/sql/eximstats.sql.
When mysql is unable to execute a query they are logged for processing later. Eventually these SQL files may be handled automatically and this message will not appear. In the meantime you can execute the queries as root with something like this:
mv /var/cpanel/sql/eximstats.sql /var/cpanel/sql/eximstats.sql.tmp_working_copy
/scripts/restartsrv_tailwatchd
mysql eximstats < /var/cpanel/sql/eximstats.sql.tmp_working_copy Once you are sure all is well you can remove /var/cpanel/sql/eximstats.sql.tmp_working_copy
ATTENTION ATTENTION ATTENTION ATTENTION !!!
tailwatchd is enabled
Running, PID 32162
Driver (Active: 1) Cpanel::TailWatch::Eximstats
Driver (Active: 1) Cpanel::TailWatch::ChkServd
Driver (Active: 1) Cpanel::TailWatch::cPBandwd
Driver (Active: 1) Cpanel::TailWatch::Antirelayd
解決策
ステップ:1 次のコマンドを発行してサービスのステータスを確認したところ、tailwatchdサービスはすでに実行されていましたが、上記のような警告メッセージが表示されていました。
/usr/local/cpanel/libexec/tailwatchd --status
ステップ:2 WHM自体が提案した手順を実行しました。 (上記のエラーメッセージに太字で示されています)。次の3つのコマンドを発行しました。
mv /var/cpanel/sql/eximstats.sql /var/cpanel/sql/eximstats.sql.tmp_working_copy // Rename eximstats.sql with eximstats.sql.tmp_working_copy
/scripts/restartsrv_tailwatchd // Restart the tailwatchd service and new blank eximstats.sql will be created
mysql eximstats < /var/cpanel/sql/eximstats.sql.tmp_working_copy // Restore eximstats.sql with the previously renamed file.
ステップ:3 上記のコマンドを実行した後、 tailwatchdを確認しました 次のコマンドを発行して、サービスステータスを再度発行します。完璧に動作していました。
/usr/local/cpanel/libexec/tailwatchd --status