Missing the Warden Crontab Entry
There is a crontab entry that will update Warden statistics every 15 minutes. You can check that it isn't missing using the command:
# crontab -u psaadm -l | grep warden
0,9,19,29,39,49,59 * * * * /usr/local/psa/admin/bin/php -dauto_prepend_file=sdk.php '/usr/local/psa/admin/plib/modules/warden/scripts/cron.php'
To re-add the entry if it is missing use the command and add the entry using depending on your OS:
// edit the psaadm cron entry and enter the line depending on your OS
# crontab -u psaadm -e
// AlmaLinux/Centos/CloudLinux/RockyLinux
0,9,19,29,39,49,59 * * * * /usr/local/psa/admin/bin/php -dauto_prepend_file=sdk.php '/usr/local/psa/admin/plib/modules/warden/scripts/cron.php'
// Debian/Ubuntu
0,9,19,29,39,49,59 * * * * /opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/warden/scripts/cron.php'
Once this is completed the statistics will be regenerated from the messages in the message log the next time the statistics task is run (every 15 minutes).
Wrong Timezone or Date and Time
Statistics generation requires that the correct date and time be set properly on your server. You can fix any timezeone or date and time problems here. After you correct any date and time problems on your server you can reset and regenerate the statistics for all domains and mailboxes using the following command:
mysql -u admin -p`cat /etc/psa/.psa.shadow` -s -N -e "use danami_warden; TRUNCATE TABLE statistics; UPDATE config SET config_value='s:19:\"2019-01-01 00:00:00\";' WHERE config_key='last_updated';"
Once this is completed the statistics will be regenerated from the messages in the message log the next time the statistics task is run (every 15 minutes).