L'un de nos clients a reçu un e-mail de WHM indiquant le service tailwatchd est éteint. Nous avons pris les mesures suivantes pour y remédier.
Message d'erreur
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
Solution
Étape 1 Lors de la vérification de l'état du service en exécutant la commande suivante, nous avons remarqué que le service tailwatchd était déjà en cours d'exécution, mais avec un message d'avertissement comme ci-dessus.
/usr/local/cpanel/libexec/tailwatchd --status
Étape 2 Nous venons de suivre les étapes suggérées par le WHM lui-même. (indiqué en gras dans le message d'erreur ci-dessus). Nous avons émis les 3 commandes suivantes.
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.
Étape 3 Après avoir lancé les commandes ci-dessus, nous avons vérifié le tailwatchd à nouveau l'état du service en exécutant la commande suivante. Il fonctionnait parfaitement.
/usr/local/cpanel/libexec/tailwatchd --status