====== Why do the cronjobs (statistics, backups, etc.) don't work? ====== If your cronjobs don't run you won't get statistics, there are no backups and no rootkit logs. The most common reason why they don't work is (except for a not running cron-daemon) that while creating the crontab something went wrong. To check this open **/etc/cron.d/ispcp**. If there are ''{...}''-variables like in this fragment your crontab is wrong. 0,30 * * * * root {TRAFF_ROOT_DIR}/ispcp-srv-traff &>{LOG_DIR}/ispcp-srv-traff.log 0,30 * * * * root {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log 15,45 * * * * root {TRAFF_ROOT_DIR}/ispcp-vrl-traff-correction &>{LOG_DIR}/ispcp-vrl-traff-correction.log You can fix this the following way: Replace your existing crontab with the following one: # delayed tasks START. # Quota @daily root /var/www/ispcp/engine/quota/ispcp-dsk-quota &>/var/log/ispcp/ispcp-dsk-quota.log # Traffic 0,30 * * * * root /var/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log 0,30 * * * * root /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>/var/log/ispcp/ispcp-vrl-traff.log 15,45 * * * * root /var/www/ispcp/engine/traffic/ispcp-vrl-traff-correction &>/var/log/ispcp/ispcp-vrl-traff-correction.log # customer logs @daily root /var/www/ispcp/engine/tools/ispcp-httpd-logs-mngr &>/var/log/ispcp/ispcp-httpd-logs-mngr.log # Backup @daily root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log @daily root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log # Remove config backups older than seven days @daily root find /etc/ispcp/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs -r /bin/rm # Remove Daemon Logs older than 14 days (except .gz files) @daily root find /var/log/ispcp/* -maxdepth 1 -type f -mtime +14 -print | egrep '.*\.gz$' | xargs -r /bin/rm # AWStats 15 */6 * * * root /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1 # Rootkit Hunter 0 */12 * * * root /usr/bin/rkhunter --check-deleted --cronjob --createlogfile /var/log/rkhunter.log >/dev/null 2>&1 # Chkrootkit 0 */12 * * * root /usr/sbin/chkrootkit &> /var/log/chkrootkit.log # Look for and purge old sessions every 30 minutes 0,30 * * * * root /var/www/ispcp/engine/tools/ispcpphptemp.sh >/dev/null 2>&1 # [{DMN_NAME}] backup task START. # [{DMN_NAME}] backup task END. # [{DMN_NAME}]:{CRONJOB_ID} custom task START. # [{DMN_NAME}]:{CRONJOB_ID} custom task END. # [{DMN_NAME}] AWStats static tasks START. # [{DMN_NAME}] AWStats static tasks END. # delayed tasks END. Replace also the working copy **/etc/ispcp/cron.d/working/ispcp**. If you run static AWStats you now have to regenerate the config-files. When your crontab is wrong since an update you can also search for a correct old crontab in **/etc/ispcp/cron.d/backup/**.