Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Traffic & Storage quota mails are sent every hour at first of month

Featured Replies

Hi folks,

i need some help to debug an issue. On my froxlor system with latest froxlor 2.2.8 on Debian 12 sents the quota mails on first of month every hour. Both quota: traffic and storage mails are effected and the values are based on the calculation of last month.

1) is this a "wanted" behaviour, that the mails are sent out every hour?

2) I do not find a dedicated cronjob for these mailout taskand no setting to adjust the sent out freuqency. Which job is taking care of the mails?

My /etc/cron.d/froxlor looks like this:

# automatically generated cron-configuration by froxlor
# do not manually edit this file as it will be re-generated periodically.
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
*/2 * * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'tasks' -q 1> /dev/null
0 * * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'traffic' -q 1> /dev/null
3 * * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'usage_report' -q 1> /dev/null
6 */6 * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'mailboxsize' -q 1> /dev/null
*/10 * * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'letsencrypt' -q 1> /dev/null
9 * * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'export' -q 1> /dev/null
# Look for and purge old sessions every 30 minutes
09,39 * * * * root /usr/bin/nice -n 5 /usr/bin/php -q /var/www/html/froxlor/bin/froxlor-cli froxlor:php-sessionclean 1> /dev/null

it usually sets the column reportsent to 1 for admins and customers.

Your crontab file looks like you manually adjusted the time intervals. this is what a default created cron.d file looks like (notice 'traffic' and 'usage_report' difference regarding the HOUR...):

*/5 * * * * root /usr/bin/nice -n 5 /usr/bin/php8.2 -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'tasks' -q 1> /dev/null
0 0 * * * root /usr/bin/nice -n 5 /usr/bin/php8.2 -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'traffic' -q 1> /dev/null
5 0 * * * root /usr/bin/nice -n 5 /usr/bin/php8.2 -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'usage_report' -q 1> /dev/null
0 */6 * * * root /usr/bin/nice -n 5 /usr/bin/php8.2 -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'mailboxsize' -q 1> /dev/null
3 */6 * * * root /usr/bin/nice -n 5 /usr/bin/php8.2 -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'letsencrypt' -q 1> /dev/null
6 * * * * root /usr/bin/nice -n 5 /usr/bin/php8.2 -q /var/www/html/froxlor/bin/froxlor-cli froxlor:cron 'export' -q 1> /dev/null
# Look for and purge old sessions every 30 minutes
09,39 * * * * root /usr/bin/nice -n 5 /usr/bin/php8.2 -q /var/www/html/froxlor/bin/froxlor-cli froxlor:php-sessionclean 1> /dev/null
  • Author

Thanks. But the interesting thing is, that i've already created this cronfile as a first solution attempt with the command given from froxlor config area in the web ui. I've tested it again, the new created file is exactly this one i've posted. But you are totally right, running only once a day makes totally sense.

The setup was originally made with a version < 1 and continously updated. Maybe this is the reason?

do not manually create this file...it's based on settings in the webui....go to "System -> Cronjob settings"

  • Author

These are my settings.... what are the defaults there? Thanks for your patience :)

grafik.png

grafik.png

it literally says "1" and "HOUR" (Stunden) in your case...simply set it to "1" and "DAYS" (Tage)

  • Author

Thanks. Change config in UI and updated cronjob. Lets see whats happen next month 1st :)

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.